Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to migrate from mysql 5.1 to 5.5?

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

like image 747
Arman Avatar asked Dec 21 '10 15:12

Arman


People also ask

How do I transfer data from one MySQL database to another?

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.

What does MySQL_ upgrade do?

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.


1 Answers

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).

like image 157
Brad Christie Avatar answered Oct 30 '22 08:10

Brad Christie