Starting MySQL..... ERROR! The server quit without updating PID file (/opt/module/mysql/mysql.pid).
时间: 2023-10-23 08:36:30 浏览: 117
在启动MySQL时,如果出现"ERROR! The server quit without updating PID file"的错误信息,可能有几种可能性导致这个问题。首先,可能是MySQL数据目录(如/usr/local/mysql/data/)的mysql用户没有足够的权限。解决这个问题的方法是使用"chown -R mysql.mysql /usr/local/mysql/data"命令给予目录权限。
另外,可能是mysql.pid文件没有写入权限。解决这个问题的方法是使用"chown -R mysql:mysql /var/data"和"chmod -R 755 /usr/local/mysql/data"命令给予文件权限。然后,重新启动mysqld即可。
综上所述,如果出现"Starting MySQL..... ERROR! The server quit without updating PID file"的错误信息,可以尝试给予MySQL数据目录和mysql.pid文件相应的权限,然后重新启动MySQL服务。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [ The server quit without updating PID file (/usr/local/mysql/data/xxx.pid).通用解决办法](https://blog.csdn.net/weixin_42812613/article/details/119512572)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [mysql启动时报错:Starting MySQL… ERROR! The server quit without updating PID file](https://download.csdn.net/download/weixin_38605967/13684113)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [mysql启动报错The server quit without updating PID file几种解决办法](https://blog.csdn.net/m0_67391401/article/details/126062225)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文