During mysql5.1X upgrade to 5.5, a friend's server is mysql5.1. to upgrade to 5.5 or above, write down the process of upgrading to 5.5.
Install the 5.5 dependency installation package
yum install -y autoconf* automake* zlib* libxml* ncurses-devel* libgcrypt* libtool* openssl*
Install cmake
yum install -y cmake
Download the official mysql5.5 source code package
wget http://dev.mysql.com/get/Downloads/MySQL-5.5/mysql-5.5.36.tar.gz
Before upgrading, we recommend that you back up the mysql and database directories of the previous 5.1 versions.
Stop mysql
service mysql stop
Upgrade mysql 5.5.36
tar xf mysql-5.5.36.tar.gzcd mysql-5.5.36cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DSYSCONFDIR=/etc -DMYSQL_DATADIR=/usr/local/mysql/var -DMYSQL_TCP_PORT=3306 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DMYSQL_USER=mysql -DEXTRA_CHARSETS=all -DWITH_READLINE=1 -DWITH_SSL=system -DWITH_EMBEDDED_SERVER=1 -DENABLED_LOCAL_INFILE=1 -DWITH_INNOBASE_STORAGE_ENGINE=1make && make install
Delete the my. cnf configuration file under/etc/
rm -rf /etc/my.cnf
Copy the 5.5 configuration file
cp support-files/my-huge.cnf /etc/my.cnf
Try to start
service mysql start
Execute the update program and restart mysql
/usr/local/mysql/bin/mysql_upgrade
If it's okay all the way, but if something goes wrong, please refer to my other article
[1] [2] Next page