I just managed to use mysqldump to dump a database into a text file. Now I uploaded it into my server where i want to import it.
I tried looking up in google and came up with this command:
where web16u1 is my databse username and workready.txt is the file that contains all the CREATE TABLE stuff as output of mysqldump command.
I got the following error:
I can easily see the problem but how do I modify the command to make it include the database name?
I tried looking up in google and came up with this command:
mysql -p --user=web16u1 < workready.txt
I got the following error:
-bash-3.2$ mysql -p --user=web16u1 < workready.txt
Enter password:
ERROR 1046 (3D000) at line 22: No database selected
Enter password:
ERROR 1046 (3D000) at line 22: No database selected
Comment