Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
MySQL启动失败_Mysql_Apache - Fatal编程技术网

MySQL启动失败

MySQL启动失败,mysql,apache,Mysql,Apache,当我启动MySQL(/etc/init.d/MySQL start)时,会出现以下错误: 正在启动服务MySQL警告:/var/run/MySQL/MySQL.sock未启动 在30秒内出现chmod:无法访问 `/var/run/mysql/mysqld.pid”:没有这样的文件或目录 我已经停止了正在运行的MySQL服务器(/etc/init.d/MySQL stop)您是以root身份运行的吗?需要chmod a+x吗?这可能是因为/var/run/MySQL/中不存在所需的文件。如果您不

当我启动MySQL(/etc/init.d/MySQL start)时,会出现以下错误:

正在启动服务MySQL警告:/var/run/MySQL/MySQL.sock未启动 在30秒内出现chmod:无法访问 `/var/run/mysql/mysqld.pid”:没有这样的文件或目录


我已经停止了正在运行的MySQL服务器(/etc/init.d/MySQL stop)

您是以root身份运行的吗?需要chmod a+x吗?这可能是因为/var/run/MySQL/中不存在所需的文件。如果您不是以root身份运行,请尝试使用sudo/etc/init.d/MySQL start Alternative,您能给出以下命令的结果吗[2-3行,包括“chmod:cannotaccess`/var/run/mysql/mysqld.pid”:没有这样的文件或目录']:bash-x/etc/init.d/mysql start