atitit.流程標準化--- mysql啟動不起來的排查流程attilax總結,atititattilax

來源:互聯網
上載者:User

atitit.流程標準化--- mysql啟動不起來的排查流程attilax總結,atititattilax

atitit.流程標準化--- mysql啟動不起來的排查流程attilax總結

 

1. mysql的開機記錄檔案 1

2. console方式 1

3. 安裝為服務 1

3.1. 使用預設設定檔 1

3.2. 指導設定檔 2

4. 啟動服務 2

 

1. mysql的開機記錄檔案

如果直接馬deflt file param 就是預設參數..mysql 不能自動 search 設定檔...

mysql重啟的預設log是到個系統的log黑頭的....

 

mysqld --help是help

mysqld -verbose --help 顯示所有的參數..

 

作者:: 老哇的爪子 Attilax 艾龍,  EMAIL:1466519819@qq.com

轉載請註明來源: http://blog.csdn.net/attilax

 

2. console方式

D:\wamp\bin\mysql\mysql5.5.20\bin\mysqld.exe --defaults-file=D:\wamp\bin\mysql\mysql5.5.20\my.ini 

但是日誌顯示好像不在console上面顯示

 

 D:\wamp\bin\mysql\mysql5.5.20\bin\mysqld.exe  --defaults-file=D:\wamp\bin\mysql\mysql5.5.20\my.ini

 

 

這個cmd是一直卡住的。。如果退出,說明沒有啟動成功。。

 

3. 安裝為服務3.1. 使用預設設定檔

 

  --install service_name 

Default options are read from the following files in the given order:

C:\Windows\my.ini C:\Windows\my.cnf C:\my.ini C:\my.cnf D:\wamp\bin\mysql\mysql5.5.20\my.ini D:\wamp\bin\mysql\mysql5.5.20\my.cnf 

 

 

 

3.2. 指導設定檔

 D:\wamp\bin\mysql\mysql5.5.20\bin\mysqld.exe  --install mysqlP4n  --defaults-file=D:\wamp\bin\mysql\mysql5.5.20\my.ini 

install參數must first..beir 刷認不得install參數.

 

回顯..

C:\Users\Administrator> D:\wamp\bin\mysql\mysql5.5.20\bin\mysqld.exe  --install

mysqlP4n  --defaults-file=D:\wamp\bin\mysql\mysql5.5.20\my.ini

Service successfully installed.

 

 

 

安裝後的服務

D:\wamp\bin\mysql\mysql5.5.20\bin\mysqld.exe --defaults-file=D:\wamp\bin\mysql\mysql5.5.20\my.ini mysqlP4n

 

 

4. 啟動服務

net start mysqlP4n

 

 

 

 

 

 

 

 

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.