Starting MySQL.. ERROR! The server quit without updating PID file (/usr/local/mysql/data/vm10-0-0-19
?輸入:service mysqld start?
報(bào)錯(cuò):
?Starting MySQL.. ERROR! The server quit without updating PID file (/usr/local/mysql/data/vm10-0-0-19.ksc.com.pid).
解決:?./scripts/mysql_install_db --user=mysql --basedir=/usr/local/mysql/ --datadir=/usr/local/mysql/data/
參考博客:在Centos上安裝MySQL時(shí)出現(xiàn)這樣的錯(cuò)誤:Starting MySQL.. ERROR! The server quit without updating PID file (/usr/loca
輸入:service mysqld start
報(bào)錯(cuò):
Warning: World-writable config file '/etc/my.cnf' is ignoredStarting MySQL.Warning: World-writable config file '/etc/my.cnf' is ignored
Warning: World-writable config file '/etc/my.cnf' is ignored
?ERROR! The server quit without updating PID file (/usr/local/mysql/data/vm10-0-0-19.ksc.com.pid).
出現(xiàn)這種情況的原因是:mysql故意不讓用戶重寫(xiě)my.cnf,權(quán)限默認(rèn)是644, 即-rw-r--r--, 如果權(quán)限不是644, 則會(huì)出現(xiàn)這種情況。那就改:chmod?644?/etc/my.cnf??
參考博客:Warning: World-writable config file '/etc/my.cnf' is ignored
3:輸入: mysql -uroot -p
報(bào)錯(cuò):
Enter password:ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
我的解決辦法:ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock
總結(jié)
以上是生活随笔為你收集整理的Starting MySQL.. ERROR! The server quit without updating PID file (/usr/local/mysql/data/vm10-0-0-19的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 【Discuz!】去掉版面的右侧的“收藏
- 下一篇: CSS3变形属性