I backed up my old database on Ubuntu 10.10 server using MySQL 5.1.49 using mysqldump
Now I want to restore the file on my other machine, using Ubuntu 12.04 server with MySQL version 5.5.32
on it.
I managed to copy the files via rsync
but I can't load the DB.
I tried it with:
sudo mysql -u root -p fulldump.sql < fulldump.sql
I get this error:
ERROR 1049 (42000): Unknown database 'fulldump.sql'
BUT the name of the file is fulldump.sql
and it's the folder I am currently in of course.
Any ideas?
It is preferred but not required. If there is an issue between releases you will be notified though (and with a message that states there is a problem with a specific command or table).
The dump contains all the files for exported database but does not create the database itself. So on the server where you restore the database needs to be created if it does not exist.
Example export:
There is no creation of the database in the export.