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
http://blog.itpub.net/30485601/viewspace-2151188/