在Centos上安装MySQL时出现这样的错误:Starting MySQL.. ERROR! The server quit without updating PID file (/usr/loca

MySQL的版本是:mysql-5.5.48-linux2.6-x86_64.tar.gz

centos6.6上安装MySQL时出现的错误:


[root@hadoop mysql]# ./support-files/mysql.server start

Starting MySQL.. ERROR! The server quit without updating PID file (/usr/local/mysql/data/hadoop.pid).

解决办法:

进入到MySQL的安装目录,找到scripts文件夹,进入该文件夹执行如下的命令

[root@localhost scripts]# ./mysql_install_db --user=mysql --basedir=/usr/local/mysql  --datadir=/usr/local/mysql/data

然后再重新启动MySQL服务即可


参考文献:

https://blog.csdn.net/zalion/article/details/9274263

https://blog.csdn.net/u010860214/article/details/49448003

扫描二维码关注公众号,回复: 1703018 查看本文章

http://blog.itpub.net/30485601/viewspace-2151188/



猜你喜欢

转载自blog.csdn.net/leying521/article/details/80295741
今日推荐