Mysql Shutdown在升级mysql 5.7时出乎意料

时间:2018-05-04 07:15:47

标签: php mysql xampp

我正在尝试在XAMPP中升级我的mysql。 PHP版本=> 5.6.3 旧的mysql版本=> 5.6.21需要升级=> 5.7.22(仅可在5.7系列中下载)

我按照以下步骤升级:

Download latest MySQL but download the zip file not the MSI
Unzip the zip file to a location.
Shutdown Mysql process (no need to remove service) from XAMPP control panel.
Go to XAMPP folder, rename mysql folder to mysql_old
Copy the new unzipped mysql folder to XAMPP folder, in it delete the data folder.
Copy over the data folder from the mysql_old to the new mysql folder.
Copy over the my.ini file under mysql_old/bin to mysql/bin.
Copy over other ini and executable files from mysql_old root folder to mysql (XAMPP ini files, my-huge.ini, my-small.ini, etc..). in my case i copied my-default.ini
Run mysql process from XAMPP control panel. Should work. (You may need
to kill XAMPP first).-->Here I struck out and facing mysql shutdown error.
(OPTIONAL) Run mysql/bin/mysql_upgrade.exe -u USERNAME -p to update tables in the local databases that may have problems due to the version change.

我试过了 1.像其他人建议的那样,在my.ini文件中将端口更改为3307,3306,8111。 2.转到mysql / data /目录    删除ibdata1& ib_logfile *(ib_logfile0,ib_logfile1,ib_logfile101)文件     重启xampp服务器

mysql_error.log显示以下内容: 2018-05-04T06:31:04.062353Z 0 [注意] c:\ mysql-upgradexampp \ sm3 \ xampp \ mysql \ bin \ mysqld.exe(mysqld 5.7.22)从流程9428开始...

我以管理员身份运行XAMPP控制面板,但仍显示

Error: MySQL shutdown unexpectedly. 
[mysql] This may be due to a blocked port, missing dependencies,  
[mysql] improper privileges, a crash, or a shutdown by another method. 
[mysql] Press the Logs button to view error logs and check 
[mysql] the Windows Event Viewer for more clues 
[mysql] If you need more help, copy and post this 
[mysql] entire log window on the forums

使用命令提示符,我收到以下错误 \ mysql \ bin> mysql -u root -p 输入密码: ERROR 2003(HY000):无法连接到'localhost'(10061)上的MySQL服务器

请有人给出建议解决。谢谢

0 个答案:

没有答案