Atitit .linux 取回root 密码q99
?
Atitit .linux 取回root 密碼q99
?
1.1. 停止mysql1
1.2. mysqld_safe路徑1
1.3. Mysql配置文件路徑1
1.4. Mysql路徑1
1.5. 安全方式啟動mysql2
1.6. 參考2
?
?
1.1.?停止mysql
service mysqld stop
service mysqld start
?
1.2.??mysqld_safe路徑
root@iZ94mqp30dmZ:/# find -name mysqld_safe
./alidata/server/mysql5.6/bin/mysqld_safe
1.3.?Mysql配置文件路徑
?
ptions ]
root@iZ94mqp30dmZ:/alidata# service mysqld stop
Warning: World-writable config file '/alidata/server/mysql/my.cnf' is ignored
Shutting down MySQL
.. *
?
作者::??★(attilax)>>>???綽號:老哇的爪子?(?全名::Attilax?Akbar?Al?Rapanui?阿提拉克斯?阿克巴?阿爾?拉帕努伊?)?漢字名:艾龍,??EMAIL:1466519819@qq.com
轉(zhuǎn)載請注明來源:?http://www.cnblogs.com/attilax/
?
1.4.?Mysql路徑
root@iZ94mqp30dmZ:/# find -name mysqld
./alidata/server/mysql5.6/bin/mysqld
./etc/init.d/mysqld
?
1.5.?安全方式啟動mysql
mysqld_safe --skip-grant-tables &
?
報錯
mysqld_safe The file /usr/local/mysql/bin/mysqld
does not exist or is not executable
?
解決: 指定basedir ?mysql目錄參數(shù)即可
/alidata/server/mysql5.6/bin/mysqld_safe ?--basedir=/alidata/server/mysql5.6 ?--skip-grant-tables &
?
?
?
--datadir=path
· --basedir=path
MySQL安裝目錄的路徑。
· --core-file-size=size
mysqld能夠創(chuàng)建的內(nèi)核文件的大小。選項值傳遞給ulimit -c。
· --datadir=path
數(shù)據(jù)目錄的路徑。
?
1.6.?參考
?
Linux啟動_停止_重啟Mysql數(shù)據(jù)庫的方法 - Ruthless - 博客園.html
?
總結(jié)
以上是生活随笔為你收集整理的Atitit .linux 取回root 密码q99的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Android自定义波浪加载圆形进度条—
- 下一篇: 黄聪:使用srvany.exe将任何程序