简体   繁体   English

如何在xampp服务器中运行MySql?

[英]How to run MySql in xampp server?

How to solve this problem ? 如何解决这个问题呢 ?

I want to connection mysql server with php code. 我想用php代码连接mysql服务器。 But I try run mysql database service, I see this error. 但我尝试运行mysql数据库服务,却看到此错误。

17:45:11  [mysql]    Status change detected: stopped 17:45:11  [mysql]
Error: MySQL shutdown unexpectedly. 17:45:11  [mysql]    This may be
due to a blocked port, missing dependencies,  17:45:11  [mysql]
improper privileges, a crash, or a shutdown by another method.

17:45:11  [mysql]   Press the Logs button to view error logs and check

17:45:11  [mysql]   the Windows Event Viewer for more clues 17:45:11 
[mysql]    If you need more help, copy and post this 17:45:11  [mysql]
entire log window on the forums

也许您应该检查您的MySQL端口是否未被占用,例如3306

You can try a couple of things- 您可以尝试几件事-

Try running mysql console and see if mysql is working fine or not. 尝试运行mysql控制台,看看mysql是否工作正常。 If so, try connecting it to php and execute your code 如果是这样,请尝试将其连接到php并执行您的代码

Run xampp as administartor and then try running mysql 以administartor身份运行xampp,然后尝试运行mysql

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM