Linux安装完Mysql启动时出现错误The server quit without updating PID file
原来不存在的原因是因为新安装的mysql服务后,一般需要执行数据库初始化操作 ,从而生成与权限相关的表。
执行命令如下:
/usr/bin/mysql_install_db --user=mysql
然后开启mysql
service mysql start
成功!
Linux安装完Mysql启动时出现错误The server quit without updating PID file
原来不存在的原因是因为新安装的mysql服务后,一般需要执行数据库初始化操作 ,从而生成与权限相关的表。
执行命令如下:
/usr/bin/mysql_install_db --user=mysql
然后开启mysql
service mysql start
成功!