![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I just RTFM and searched the web, but I still don't know the correct way to upgrade from 5.0 to 5.5. My questions: - Is upgrade done by just replacing the binaries and then running mysql_upgrade |
|
or by mysqldump --all-databases in the old instance and loading it into a new server? |
|
- If upgrade should be performed by dump/restore, is it still necessary to run mysql_upgrade? |
#3
| |||
| |||
|
|
or by mysqldump --all-databases in the old instance and loading it into a new server? This is an alternative with the advantage that you can upgrade to any version and also downgrade (except you use a new feature, i.e. downgrading from a version with triggers to one without). The drawback is, that dumping and loading typically takes much longer time. Hint: do not use mysqldump --all-databases because this includes the `mysql` schema which is likely to have changed in the newer version. Instead you should: 1. dump the MySQL accounts, i.e. with mysqldumpgrants (3rd party) 2. dump your databases with mysqldump --triggers --routines --events --databases db1 db2 ... preferrably use mysqldump from the new version for that 3. install clean new MySQL version 4. import MySQL accounts 5. import the dump - If upgrade should be performed by dump/restore, is it still necessary to run mysql_upgrade? Only if you dumped/reloaded the `mysql` schema |
#4
| |||
| |||
|
|
Axel Schwenke wrote: Hint: do not use mysqldump --all-databases because this includes the `mysql` schema which is likely to have changed in the newer version. Instead you should: 1. dump the MySQL accounts, i.e. with mysqldumpgrants (3rd party) 2. dump your databases with mysqldump --triggers --routines --events --databases db1 db2 ... preferrably use mysqldump from the new version for that 3. install clean new MySQL version 4. import MySQL accounts 5. import the dump I don't know if I should trust mysqldumpgrants - does it work well in your experience? |
|
Will dump/restore of the "mysql" schema with subsequent mysql_upgrade work for upgrading from 5.0 to 5.5 or would I have to upgrade to 5.1 first? |
#5
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |