XAMPP 和 MySQL 工作台

XAMPP 和 MySQL 工作台

好的,我在 XAMPP 中收到此消息错误:

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

和这个:

20:25:34 [mysql] Problem detected! 20:25:34 [mysql] Port 3306 in use by ""C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe" --defaults-file="C:\ProgramData\MySQL\MySQL Server 5.7\my.ini" MySQL57"! 20:25:34 [mysql] MySQL WILL NOT start without the configured ports free! 20:25:34 [mysql] You need to uninstall/disable/reconfigure the blocking application 20:25:34 [mysql] or reconfigure MySQL and the Control Panel to listen on a different port

我已经安装了 XAMPP 和 MySQL workbench 版本 6.3。

我尝试更改 XAMPP 的 MySQL 服务的端口号,看看是否能解决问题,但没有效果。

我还尝试用我的 MySQL 工作台密码替换 XAMPP 的 config.inic.php 文件中的字段 $cfg['Servers'][$i]['password'] = ''; 但问题仍然存在,我无法启动 MySQL XAMPP 服务和 MySQL 工作台。

您知道我还能做些什么来解决这个问题吗?

谢谢!

答案1

所以我解决了这个问题。

您必须确保对工作台使用正确的密码。然后,如果您想使用 PHP 我的管理工具,您必须在 XAMPP 文件中进行一些更改。

您必须在 PhpMyAdmin 文件夹中搜索 config.inic.php,并将密码放在第 21 行 ( $cfg['Servers'][$i]['password'] = '')。然后,您必须更改与 XAMPP 连接的端口号,为此,请转到 XAMPP 中的 config mysql 按钮,打开 my.ini 文件,将 3306 端口更改为另一个端口(例如 33060)。现在重新启动 XAMPP,就完成了。

这对我有用,希望这对你们有帮助!

相关内容