Mysql5.6 5.7 Upgrade

Suppose now been installed and 5.6 normal use, and in the / usr / local /, mysql connection point by soft, flexible ligation Mysql5.6 version control is easy.

First, turn off Mysql service

service mysqld stop

Then check the configuration information datadir /etc/my.cnf, modifications to mysql-5.6 ------- / data.

Then, execute the following command to release the soft connection

cd /usr/local/
unlink mysql 
ln -s mysql-5.7******** mysql
mysql -uroot -p
[root@localhost ~]# mysql -uroot -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 7
Server version: 5.7.9 MySQL Community Server (GPL)

Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> select version();
+-----------+
| version() |
+-----------+
| 5.7.9     |
+-----------+
1 row in set (0.00 sec)

mysql> 

The upgrade is complete, in fact, just to be a flexible connection, specify the data directory on it, across the major version upgrade, in Mysql official website will document the appropriate action.

Guess you like

Origin www.cnblogs.com/shy-1208/p/12153839.html