MySQL 5.5 Command Line Client 打不開(閃一下消失)的解決辦法

來源:互聯網
上載者:User

MySQL 5.5 Command Line Client 打不開(閃一下消失)的解決辦法

網上搜尋到的解決辦法:

1、找到mysql安裝目錄下的bin目錄路徑。

2、開啟cmd,進入到bin目錄的路徑下,輸入mysql -u root -p。

問題分析:

1、查看mysql command line client預設執行的一些參數。方法:開始->所有程式->MySQL->MySQL Server5.5->MySQL5.5 command line client,右鍵屬性。

2、注意看目標的內容。內容比較長,複製出來如下:

"G:\Program Files\MySQL\MySQL Server 5.5\bin\mysql.exe" "--defaults-file=G:\Program Files\MySQL\MySQL Server 5.5\my.ini" "-uroot" "-p"

3、注意"--defaults-file=G:\Program Files\MySQL\MySQL Server 5.5\my.ini" "-uroot" "-p" 中指定的設定檔是 my.ini檔案。

這裡我們查看一下安裝目錄,即G:\Program Files\MySQL\MySQL Server 5.5,6個ini檔案均不是 my.ini。

4.複製my-small.ini檔案,更名為my-ini檔案,儲存。

5.啟動mysql command line client,問題解決。

推薦閱讀:

MySQL 5.5 Command Line Client SQL常用語句

Ubuntu下Nginx做負載實現高效能WEB伺服器5---MySQL主主同步

生產環境MySQL主主同步主鍵衝突處理

MySQL主從失敗 錯誤Got fatal error 1236

MySQL主從複製,單台伺服器上實施

Ubuntu下編譯安裝MySQL雙執行個體並配置主從複製

相關文章

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.