I am just migrating from 5.1 to 5.5. I copy my data from mysql5.1 data forlder to mysql5.5/data.
I just wondered if I can overwrite the file ibdata1 in mysql 5.5 data directory?
Thanks Arman.
EDIT
Yes I can copy 5.1 to 5.5 and then I need to run mysql_upgrade
To copy a MySQL database from a server to another, you use the following steps: Export the database on the source server to a SQL dump file. Copy the SQL dump file to the destination server. Import the SQL dump file to the destination server.
mysql_upgrade saves the MySQL version number in a file named mysql_upgrade_info in the data directory. This is used to quickly check whether all tables have been checked for this release so that table-checking can be skipped. To ignore this file and perform the check regardless, use the --force option.
Have you visited the MySQL 5.5 FAQ: Migration portion of the reference manual? They have a specific page dedicated to moving from 5.1 to 5.5 with step-by-step guide (including making a backup).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With