Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 127807

Summary: mysql client look for my.cnf in /etc
Product: Gentoo Linux Reporter: Steve Kwok <steve>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: VERIFIED DUPLICATE    
Severity: normal    
Priority: High    
Version: 2005.1   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Steve Kwok 2006-03-27 19:17:26 UTC
After update mysql to 5.0.18 (I tried 5.0.19 as well) mysqlclient no longer look for my.cnf in /etc/mysql. All connection charset fall back to latin1(I specify all connect to utf8). After cp my.cnf from /etc/mysql to /etc and then it works again.

when I run mysql --help it shows
--------------------------------------------------
Default options are read from the following files in the given order:
/etc/my.cnf ~/.my.cnf
--------------------------------------------------

Previously it is 
--------------------------------------------------
Default options are read from the following files in the given order:
/etc/my.cnf /var/lib/mysql/my.cnf ~/.my.cnf
--------------------------------------------------

The strange thing is that there is no my.cnf in all three directory neither. However it works.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-03-28 00:45:16 UTC

*** This bug has been marked as a duplicate of 127808 ***
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-03-28 00:45:31 UTC
CLOSED