Skip to content

add use sqoop statement - #3

Open
mehikmat wants to merge 1 commit into
jarcec:masterfrom
mehikmat:master
Open

add use sqoop statement#3
mehikmat wants to merge 1 commit into
jarcec:masterfrom
mehikmat:master

Conversation

@mehikmat

@mehikmat mehikmat commented May 6, 2014

Copy link
Copy Markdown

If I don't use the use database_name; statement,tables are being created in default database mysql.

If I don't use the `use database_name;` statement,tables are being created in default database `mysql`.
@jarcec

jarcec commented May 6, 2014

Copy link
Copy Markdown
Owner

Actually we are intentionally missing the "use" clause. The idea is that you can run the script in any database per your choice and not force you to use "sqoop" database. One way how to execute it in Sqoop database is:

$ mysql sqoop < mysql.tables.sql

or

$ mysql sqoop
mysql> source mysql.tables.sql

@mehikmat

mehikmat commented May 7, 2014

Copy link
Copy Markdown
Author

It's fine if one performs in the way you specified above and it's working on my machine.
I had just thought that mysql credentials file creates hard coded database 'sqoop' so better to also put use in mysql.tables script.

Okay. It's working fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants