我已将XAMPP版本更新至1.8.2。现在我遇到MySQL数据库服务器无法启动的问题。MySQL数据库无法启动XAMPP
如果我尝试启动Apache Web服务器(在'应用程序管理器'中),它会显示“开始...”,几秒钟后显示“正在运行”。当我对MySQL数据库做同样的事情时,它说“开始......”几秒钟,然后它说“停止”。
当我看配置文件(my.cnf中),我看到:
# The following options will be passed to all MySQL clients
[client]
#password = your_password
port = 3306
socket = /Applications/XAMPP/xamppfiles/var/mysql/mysql.sock
我认为这个问题是在插座中。 mysql.sock在该目录中不存在,甚至不存在于整个XAMPP目录中。
有谁知道如何解决这一问题?
PS:我有PHP 5.4在OS X上
mysql将在必要时创建套接字文件,但只有当该路径实际存在时才会创建套接字文件... –
[xampp不能在Windows 7上工作 - Windows 7论坛](http://stackoverflow.com/questions/7665330/xampp-not-working-on-windows-7-windows-7-forums) –
不,它不一样。它只能启动MySQL服务器。 – user2543798