If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
SQL file containing INSERT - need to add USE database
Hi
I created a .sql file that has many INSERT statements - which resulted in a 220MB file - after zipping its 80MB - I uploaded the file to the server which took some hrs as net speed is low here.
Now I realized that I should have added USEdatabase_name in the first line and then execute in command line using mysql < hugefile.sql
But now that USEdatabase_name isnt there, how can I get the command line tool to execute the sql file for a particular database_name ?