mysql 配置路徑

來源:互聯網
上載者:User

標籤:io   os   ar   使用   sp   檔案   on   ad   ef   

1)關於設定檔路徑

有時候,我發現雖然嘗試修改了設定檔的一些變數,但是並沒有生效。後來才發現原來是因為修改的檔案並非MySQL伺服器讀取的設定檔。

如果不清楚MySQL當前使用的設定檔路徑,可以嘗試這樣查看:

 /usr/local/zend/mysql/bin/mysqld --verbose --help | grep -A 1 ‘Default options‘

141020 17:34:05 [ERROR] Can‘t find messagefile ‘/usr/local/mysql/share/errmsg.sys‘

141020 17:34:05 [Warning] Can‘t create test file /usr/local/mysql/data/zhepamadeiMac.lower-test

141020 17:34:05 [Warning] Can‘t create test file /usr/local/mysql/data/zhepamadeiMac.lower-test

/usr/local/zend/mysql/bin/mysqld: Can‘t change dir to ‘/usr/local/mysql/data/‘ (Errcode: 2)

141020 17:34:05 [Note] Plugin ‘FEDERATED‘ is disabled.

/usr/local/zend/mysql/bin/mysqld: Unknown error 1146

141020 17:34:05 [ERROR] Can‘t open the mysql.plugin table. Please run mysql_upgrade to create it.

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

/etc/my.cnf /etc/mysql/my.cnf /usr/local/mysql/etc/my.cnf ~/.my.cnf 

 

 

 

mysql 配置路徑

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.