Hello,
Another thing to check when you moved the databases then changing versions of MySQL is to verify that the databases are compatible with the new version.
- 1 - In the folder containing your database, by default "wamp\bin\mysql\mysql5.1.3x\data" do you have a file "mysql_upgrade_info"?
Note: The folder containing your database is the content of "datadir =...." of file "wamp\bin\mysql\mysql5.1.xy\my.ini"
- 2 - Does it contain "5.1.xy? (The number of MySQL version used)
If you answer NO to 1 or 2, you have great chances of error occur: "Table 'mysql.servers' does not exist" and possibly other errors because there was no verification concordances of your databases with the new version of MySQL.
Note: The table mysql.servers is used by the database engine type FEDERATED but with some SQL statements, it is verified and the error if it does not. This table is not installed during upgrades because the software can not do all that is required because it is not "client" and it can not access the database but only for files system.
Therefore, it is provided that allows the program mysql_upgrade.exe modify tables that require changes after an update or a change in MySQL.
This progamme MUST be executed after each update or change the version of MySQL.
For Windows users, non-aficionado of the command line, here's how to do.
Save the existing databases (better safe than sorry!). The file containing your databases correspont content of "datadir =...." File "wamp \ bin \ mysql \ mysql5.1.3x \ my.ini" except the mysql tables containing specific to MySQL.
First, we must start the database server, then start WampServer
Then start a command window by start, run and type
% Systemroot%\system32\cmd.exe
Move to the bin folder of the new version of mysql:
wamp\bin\mysql\mysql5.1.xy\ bin
Arriving there the question is whether or not you put a password for root@localhost
If password, type:
mysql_upgrade.exe --user=root --host=localhost --password=your_password
If noit password, type
mysql_upgrade.exe --user=root --host=localhost --password=
then wait for the end of procedure.
---------------------------------------------------------------
Documentation Apache -
Documentation PHP -
Documentation MySQL -
Wampserver install files & addons