日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > 数据库 >内容正文

数据库

MySQL: Starting MySQL….. ERROR! The server quit without updating PID file解决办法

發布時間:2024/9/20 数据库 30 豆豆
生活随笔 收集整理的這篇文章主要介紹了 MySQL: Starting MySQL….. ERROR! The server quit without updating PID file解决办法 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

1 問題

[root@localhost mysql]# /etc/rc.d/init.d/mysql status
MySQL is not running, but lock file (/var/lock/subsys/mysql[FAILED]
[root@localhost mysql]# /etc/rc.d/init.d/mysql start
Starting MySQL...The server quit without updating PID file (/usr/local/mysql/data/localhost.localdomain.pid).??????????????????????????????[FAILED]

?

2 原因

沒有初始化權限表

?

3 解決辦法

#cd /usr/local/mysql(進入mysql安裝目錄)
#chown -R mysql.mysql .
#su - mysql
$cd server
$scripts/mysql_install_db

?

4 本人解決過程

[root@localhost ~]#?cd /usr/local/mysql

[root@localhost mysql]#?chown -R mysql.mysql .
[root@localhost?mysql]#?su - mysql
[mysql@localhost ~]$?cd /usr/local/mysql
[mysql@localhost mysql]$?scripts/mysql_install_db
Installing MySQL system tables...
OK
Filling help tables...
OK

To start mysqld at boot time?you have to copy
support-files/mysql.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:

./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h localhost.localdomain password 'new-password'

Alternatively you can run:
./bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default.??This is
strongly recommended for production servers.

See the manual for more?instructions.

You can start the MySQL daemon with:
cd . ; ./bin/mysqld_safe?&

You can test the MySQL?daemon with?mysql-test-run.pl
cd ./mysql-test ; perl mysql-test-run.pl

Please report any problems with the ./bin/mysqlbug script!

[mysql@localhost mysql]$?/usr/local/mysql/bin/mysqld_safe --user=mysql &
[1] 11767
[mysql@localhost mysql]$ 120502 07:01:17 mysqld_safe Logging to'/usr/local/mysql/data/localhost.localdomain.err'.
120502 07:01:17 mysqld_safe Starting mysqld daemon?with databases from /usr/local/mysql/data
[mysql@localhost mysql]$?/etc/rc.d/init.d/mysql status
MySQL running (11830)??????????????????????????????????????[??OK??]
[mysql@localhost mysql]$?/etc/rc.d/init.d/mysql start
Starting MySQL?????????????????????????????????????????????[??OK??]

?

?

附一文:MySQL: Starting MySQL….. ERROR! The server quit without updating PID file

FROM:http://icesquare.com/wordpress/mysql-starting-mysql-error-the-server-quit-without-updating-pid-file/

?



This step-by-step guide is mainly for FreeBSD, however the idea is the same for Linux. Every once a while, when I update my FreeBSD box, the system likes to shutdown my MySQL server. Therefore, I need to start it again after the update is done. Unfortunately, the upgrade process is not smooth every time. Sometimes it will throw me some error.

/usr/local/etc/rc.d/mysql.server start

Oh well, I got the following error messages:

Starting MySQL..... ERROR! The server quit without updating PID file.

Sometimes, the message will tell you the exact location of which PID file:

Starting MySQL..... ERROR! The server quit without updating PID file (/var/db/mysql/www.icesquare.com.pid).

There are several solutions to troubleshoot these problems. I will go over each one by one.

Solution 1: Reboot The Computer

Although it sounds simple, but it really works. During the system upgrade, the OS may disable some of your daemons. Instead of troubleshooting each one by one, the easiest way is to start everything over. For example, I experienced this problem today after upgrading the?Apache and Ruby?(Yes, MySQL is not part of the update), and I got this error message afterward. After rebooting the computer, the error message is gone.

Solution 2: Remove Your MySQL Config File

If you have modified your MySQL configuration file, MySQL may not like it few versions after (MySQL is not backward compatibility friendly). It can be?the problem of using an unsupported variable, or something similar. The easiest?way is to remove your configuration file, and try to start the MySQL server again:

Backup your MySQL configuration first.

mv /etc/my.cnf /etc/my.cnf.backup

And restart the MySQL server?again:

/usr/local/share/mysql/mysql.server start

Hopefully you will see the following message:

Starting MySQL. SUCCESS!

Solution 3: Upgrade Your Database File

Sometimes, the newer MySQL doesn’t like the database created in earlier version. I discovered this when I upgrade to MySQL 5.5.7:

Starting MySQL..... ERROR!?The server quit without updating PID file (/var/db/mysql/www.icesquare.com.pid).

Since MySQL tells me which PID file causes the problem, I open the file and take a look what’s going on:

sudo tail /var/db/mysql/www.icesquare.com.err

And I saw something interesting:?tables: Table ‘mysql.proxies_priv’ doesn’t exist:

101112 10:49:16 InnoDB: Initializing buffer pool, size = 128.0M 101112 10:49:16 InnoDB: Completed initialization of buffer pool 101112 10:49:16 InnoDB: highest supported file format is Barracuda. 101112 10:49:17 InnoDB: 1.1.3 started; log sequence number 1589404 101112 10:49:17 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.proxies_priv' doesn't exist 101112 10:49:17 mysqld_safe mysqld from pid file /var/db/mysql/www.icesquare.com.pid ended

The reason is very simple. MySQL could not open a table created in the earlier version (< 5.7.7) because it is not compatible with the current version. So, we can try to start the MySQL in safe mode through rc.d. First, you can edit the?/etc/rc.conf?and put the following into the file:

mysql_enable="YES" mysql_args="--skip-grant-tables --skip-networking"

Restart MySQL through rc.d:

/usr/local/etc/rc.d/mysql-server start

If you did it right, you should see something like the following:

Starting MySQL.. SUCCESS!

Now, MySQL is already running the safe-mode. We want to perform a MySQL upgrade on all tables:

sudo mysql_upgrade

You should see something like this:

Looking for 'mysql' as: mysql Looking for 'mysqlcheck' as: mysqlcheck Running 'mysqlcheck' with connection arguments: '--port=3306' '--socket=/tmp/mysql.sock' Running 'mysqlcheck' with connection arguments: '--port=3306' '--socket=/tmp/mysql.sock' mysql.columns_priv OK mysql.db OK mysql.event OK mysql.func OK mysql.general_log OK mysql.help_category OK mysql.help_keyword OK mysql.help_relation OK mysql.help_topic OK mysql.host OK mysql.ndb_binlog_index OK mysql.plugin OK mysql.proc OK mysql.procs_priv OK mysql.servers OK mysql.slow_log OK mysql.tables_priv OK mysql.time_zone OK mysql.time_zone_leap_second OK mysql.time_zone_name OK mysql.time_zone_transition OK mysql.time_zone_transition_type OK mysql.user OK Running 'mysql_fix_privilege_tables'... OK

Now, we want to switch the?MySQL back to normal mode by commenting the extra options in /etc/rc.conf:

mysql_enable="YES" #mysql_args="--skip-grant-tables --skip-networking"

And restart MySQL?through /etc/rc.d:

/usr/local/etc/rc.d/mysql-server restart

Now the MySQL is up and running again!

Happy MySQLing.

–Derrick


來源:http://blog.csdn.net/orichisonic/article/details/47021379

總結

以上是生活随笔為你收集整理的MySQL: Starting MySQL….. ERROR! The server quit without updating PID file解决办法的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。

主站蜘蛛池模板: 美女狠狠干 | 日日夜夜一区 | 91精品视频一区二区三区 | 不卡视频国产 | 中文字幕超清在线观看 | 狠狠干夜夜爽 | 蜜桃av影院| 久久免费国产视频 | 日韩在线一卡二卡 | 久久久久一 | 99久久香蕉 | 日日天天干| 在线日本视频 | 在线免费黄色网址 | 免费黄网站在线看 | 亚洲一区三区 | 人妻精品无码一区二区 | 国产a区 | 黄色成人在线观看 | 亚洲av无码国产综合专区 | 国产破处在线 | 久久综合高清 | 亚洲精品无人区 | 精品国产av色一区二区深夜久久 | 天天cao| 久久久久久国产精品 | 综合色久 | 日本一二三区在线视频 | 色婷婷久久久亚洲一区二区三区 | 欧美另类高清videos的特点 | 五月激情综合 | 天天躁日日躁狠狠躁av麻豆 | 一级不卡| 理伦毛片 | 黄色一级大片 | 亚洲高清精品视频 | 多男调教一女折磨高潮高h 国内毛片毛片毛片毛片毛片 | 青青草97国产精品免费观看 | 亚洲免费视频网站 | 福利一区二区 | 九九99精品视频 | 亚洲精品短视频 | 久久精品免费一区二区 | 四虎影视永久免费观看 | 久草资源在线播放 | 亚洲天堂久久 | 久久久www免费人成人片 | 欧美涩涩视频 | 国产任你操 | 成人一区在线观看 | 好色先生tv官网 | 美女免费看片 | 免费99精品国产自在在线 | 国产-第1页-浮力影院 | 国产91九色 | 手机在线一区二区 | 久久一级免费视频 | 免费看污片网站 | youjizzcom日本| 情欲少妇人妻100篇 黄色一级片欧美 | 亚洲一区区 | 国产伦精品一区二区三区免.费 | 成人国产欧美 | 美女露出让男生揉的视频 | 毛片网止| 中文字幕一区二区av | 久久久久无码国产精品一区 | 成人手机在线视频 | 午夜激情国产 | 欧美黑人三级 | 亚洲熟女一区二区三区 | 久久久久久999 | 国产激情视频 | 久久99热这里只频精品6学生 | 中国大陆毛片 | 日本免费专区 | 天堂在线1| 欧美 亚洲 | 老牛影视av一区二区在线观看 | 久操亚洲 | 亚洲精品xxxxx| 欧美少妇15p | 国产 日韩 欧美 制服丝袜 | 爱爱色图| 天天射干 | 波多野结衣中文字幕久久 | 成人深夜网站 | 男女69视频 | 亚洲天堂2018av| 玉足脚交榨精h文 | 亚洲色图p| 精品在线观看一区 | 国产亚洲精品精品精品 | 日韩爱爱片 | 国产精品视频久久久久久 | 亚洲国产私拍精品国模在线观看 | 欧美激情xxx | 成人免费毛片果冻 | 日韩欧美网址 |