標籤: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 配置路徑