内射老阿姨1区2区3区4区_久久精品人人做人人爽电影蜜月_久久国产精品亚洲77777_99精品又大又爽又粗少妇毛片

Can'topenandlockprivilegetables:Table'mysql.user'doesn'texist

[root@szq scripts]# service MySQLd start
Starting MySQL..The server quit without updating PID file(/var/lib/mysql/szq.pid).[FAILED]

# more  /prosync/mysql/mysql/data/szq.err 
查看報(bào)錯(cuò):
160413 04:46:40 mysqld_safe Starting mysqld daemon with databases from /prosync/mysql/mysql/data
2016-04-13 04:46:40 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2016-04-13 04:46:40 0 [Note] /prosync/mysql/mysql/bin/mysqld (mysqld 5.6.30) starting as process 29379 ...
2016-04-13 04:46:40 29379 [Note] Plugin 'FEDERATED' is disabled.
/prosync/mysql/mysql/bin/mysqld: Table 'mysql.plugin' doesn't exist
2016-04-13 04:46:40 29379 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
2016-04-13 04:46:40 29379 [Note] InnoDB: Using atomics to ref count buffer pool pages
2016-04-13 04:46:40 29379 [Note] InnoDB: The InnoDB memory heap is disabled
......
2016-04-13 04:46:41 29379 [Note]   - '::' resolves to '::';
2016-04-13 04:46:41 29379 [Note] Server socket created on IP: '::'.
2016-04-13 04:46:41 29379 [ERROR]Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist
160413 04:46:41 mysqld_safe mysqld from pid file /prosync/mysql/mysql/data/szq.pid ended
160413 04:49:43 mysqld_safe Starting mysqld daemon with databases from /prosync/mysql/mysql/data
......
/prosync/mysql/mysql/bin/mysqld: Table 'mysql.plugin' doesn't exist
2016-04-13 04:49:43 29528 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
2016-04-13 04:49:43 29528 [Note] InnoDB: Using atomics to ref count buffer pool pages
......
2016-04-13 04:49:43 29528 [Note] Server socket created on IP: '::'.
2016-04-13 04:49:43 29528 [ERROR]Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist
160413 04:49:43 mysqld_safe mysqld from pid file /prosync/mysql/mysql/data/szq.pid ended

解決辦法:
#查看當(dāng)前的my.cnf配置文件
[root@szq scripts]# more /etc/my.cnf |grep -v ^#

[mysqld]
basedir =/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
old_passwords=1

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

#由于編譯安裝時(shí)指定的路徑為/prosync/mysql/mysql/,mysql_install_db時(shí)指定的datadir為/prosync/mysql/mysql/data,而my.cnf為缺省的路徑
#因此修改datadir至正確路徑后,問(wèn)題解決
[root@szq scripts]# vi /etc/my.cnf
[root@szq support-files]# more /etc/my.cnf |grep datadir
basedir = /prosync/mysql/mysql
datadir = /prosync/mysql/data

[root@szq kdb11]# service mysql start 
Warning: World-writable config file '/prosync/mysql/mysql/my.cnf' is ignored
Starting MySQL. SUCCESS! 

當(dāng)前題目:Can'topenandlockprivilegetables:Table'mysql.user'doesn'texist
文章網(wǎng)址:http://m.rwnh.cn/article40/ipcjho.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供品牌網(wǎng)站建設(shè)、動(dòng)態(tài)網(wǎng)站、營(yíng)銷型網(wǎng)站建設(shè)關(guān)鍵詞優(yōu)化、服務(wù)器托管網(wǎng)站制作

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

網(wǎng)站建設(shè)網(wǎng)站維護(hù)公司
金乡县| 扎囊县| 改则县| 方正县| 合作市| 汽车| 石城县| 乐亭县| 华容县| 临漳县| 灵川县| 闸北区| 垦利县| 利辛县| 布尔津县| 迭部县| 楚雄市| 礼泉县| 大足县| 樟树市| 赣榆县| 台北市| 钟山县| 黑龙江省| 台安县| 大城县| 介休市| 象州县| 彭山县| 兴宁市| 奇台县| 阜康市| 阜城县| 安平县| 洛川县| 祁东县| 射洪县| 黄冈市| 呼玛县| 穆棱市| 高陵县|