Update information Edit(Feb.9) Edit2(Aug.2)
Now, MySQL Community Server’s latest version is 5.6.10, and I heard this is the first GA. As I used MySQL5.5 until yesterday, I’ve upgraded to 5.6. I installed the previous version mysql-installer-community-5.5.29.0.msi, but this time I decided to use a Zip archive. I didn’t want to change the installation path name of MySQL because for easy configuration. So I took the next procedures. My server OS is still WindowsXP SP3(x86).
When you remove it, the application data of MySQL still remains. So, your current databases are maybe all safe. But, if you want more safe, you’d better back up them.
Upgrading one MySQL Zip archive to another, you can overwrite the existing installation. But, I used the msi to install the previous version, so, I need the uninstaller, if not, a MySQL zombie remains on the list of ‘Add or Remove Programs’.
I also installed my old my.ini to the same hierarchy of the new my-default.ini.
Run cmd.exe
cd C:Program FilesMySQLMySQL Server x.xbin
mysqld.exe –install
If its ‘Startup Type’ is not ‘Automatic’, we have to change it to ‘Automatic’.
When I made to start it, I had an error. orz.
By the way, why did I set this option? I had no idea. Though I re-learned about ‘ table_cache, max_connections, open_files_limit’, I made no sense of it. Hmm.
On the new server the default value of max_connections is 151 (<<--- You can know it by the command "show variables like 'max_connections'"). According to Upgrading from MySQL 5.5 to 5.6, between 5.5 and 5.6 have some Configuration Changes. They say ‘The idea behind autosizing’. So I deleted two lines about table_cache and max_connections in my old my.ini.
Start the service again. Complete!!!
I had the error.
Got error: 1045: Access denied for user ‘root’@’localhost’ (using password: NO) when trying to connect
FATAL ERROR: Upgrade failed
So I did again.
mysql_upgrade.exe –password[=password]
Complete. But I have the warning next.
Warning: Using a password on the command line interface can be insecure.
My server configuration doesn’t make the command line data go the Internet. If your server permits your command line input to go outside and other users use the server, you maybe need more attentions.
I restarted the MySQL service. mysql_upgrade — Check and Upgrade MySQL Tables says the need for it.
I think this is very common warning because Upgrading from MySQL 5.5 to 5.6 has the information about this. I added the next line to the [mysqld] area of the my.ini.
explicit_defaults_for_timestamp=true
I restarted the MySQL service. The warning has gone.
That’s it. Mission complete. I’m exhausted! (^_~;)
Edit(Feb.9):
I had another warning on the log file xxxx.err. Like this.
I found “innodb_use_sys_malloc=on”. What does this warning say exactly?
I turned “innodb_use_sys_malloc=off” and got the warning next.
As I got it probably said “no need to set the option innodb_additional_mem_pool_size”, I comment-outed innodb_additional_mem_pool_size in the my.ini. By the way, I found out MySQL 5.6 features made much progress gained a good reputation. It is wasted on a tiny blogger like me (^^;).
I also had ‘IPv6 is not available.’ on the xxxx.err. It’s neither an error nor a warning, though…… I can not deal with it by myself. I wonder my provider is preparing for it.
Edit2(Aug.2):
I wrote an article about a new installation of a MySQL5.6 on the post ‘To create a Wamp-like Web Server in Windows7-#3.‘.
The recipe for sweet potato yōkan that I often made this fall. Ingredients Sweet potato…
After a long time, when I checked broken links and fixed them, I got an…
I made a box, so I prepare the contents. Theme and Plugins. The theme is…
Hehe, it's been almost a year since my last post. I received a notification email…
About a week ago, I finally started to renew my sites, which I had been…
This website uses cookies.