我按照这个链接来升级mysql,https://rtcamp.com/tutorials/mysql/mysql-5-6-ubuntu-12-04/。
本文ubuntu是x64,但我的ubuntu是x32,所以我将下载链接更改为http://cdn.mysql.com/Downloads/MySQL-5.6/mysql-5.6.16-debian6.0-i686.deb。
当我完成安装时,输入以下命令启动mysql:$ service mysql.server start
它提醒我:
Starting MySQL
. * The server quit without updating PID file (/var/run/mysqld/mysqld.pid).当我尝试键入service mysql-server restart时,它会提醒我一些不同之处:
* MySQL server PID file could not be found!
Starting MySQL
. * The server quit without updating PID file (/var/run/mysqld/mysqld.pid).也许有什么能帮到你的:
ps aux | grep mysql时,ps aux | grep mysql将显示不同的PID。my.cnf文件有以下行
# This will be passed to all mysql clients
# It has been reported that passwords should be enclosed with ticks/quotes
# escpecially if they contain "#" chars...
# Remember to edit /etc/mysql/debian.cnf when changing the socket location.
[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock
# Here is entries for some specific programs
# The following values assume you have at least 32M ram
# This was formally known as [safe_mysqld]. Both versions are currently parsed.
[mysqld_safe]
socket = /var/run/mysqld/mysqld.sock
nice = 0发布于 2015-03-09 10:03:19
在文件夹"/var/run/mysqld/“中创建一个名为"mysqld.pid”的新文件,然后编辑该文件,例如将第1行设置为: 1329,然后再次启动服务器
发布于 2014-04-11 07:19:35
通过命令rm -f 'filename.pid‘删除所有现有的pid文件
然后启动服务器..。
谢谢
https://stackoverflow.com/questions/23005786
复制相似问题