I have recently upgraded my staging database server from MySQL 5.0.84 to 5.1.72. I am trying to restore the mysqldump after upgrade. The database name in the dump is gss-app
. But the database folder name under /var/lib/mysql
turned to be gss@022dapp
, but when I login to mysql using mysql -u root -p
and type show databases;
it lists the database name as gss-app
only and I can Use Database gss-app
and list the tables using show tables
command.
The restore was failed with an error Got a packet bigger than --max_allowed_packet size
. That time the database was partially restored and I took that chance to rename the gss@022dapp
folder to gss-app
and logged into mysql shell.
It listed the database name as @mysql@gss-app
and I was not able to get into the database. Now I'm running the database restore once again with --max_allowed_packet_size=1024M
and I see the gss@022dapp
folder was created in /var/lib/mysql
.
Should I concern about the folder name in /var/lib/mysql
? Or can I use a different database name while restoring?