In the latest development projects need to mysql5.7 or later, but phpStudy version is 5.5, so it is necessary to upgrade it for MySQL
step
1. Back up the original MySQL
Backup: Originally phpStudy the MySQL folder renamed MySQL #
2. Download MySQL5.7
Baidu network disk address: https://pan.baidu.com/s/1_qpVxBC-6fuzuUqMGIPAJA
Download: https://dev.mysql.com/downloads/file/?id=467269
3. Preparations
The compressed package folder renamed MySQL, move to the next phpStudy \ PHPTutorial
Its my-default.ini file renamed my.ini
Open the my.ini file, about two configuration (configuration according to their own path)
4. Configure Environment Variables
5. initialization, installation, start
Open Run as administrator cmd
initialization
mysqld --initialize
installation:
mysqld --install
start up:
net start MySQL
Note: If you do not run as administrator cmd execute commands above, it may encounter an error message
6. Modify Profile
Open the my.ini, find [mysqld], add the following:
skip-grant-tables
This time using the root account and password to log in at the press Enter
7. Execute the following command to change the password to log
update mysql.user set authentication_string=password('new_password') where user='root' and Host ='localhost';
执行完成后退出MySQL,注释或者删除掉my.ini中 skip-grant-tables,停止mysql : net stop MySQL,再启动: net start MySQL
8.登录查看版本
登录后执行
ALTER USER USER() IDENTIFIED BY 'news_password';
查看版本
select version();
至此安装完成