mysqldump doesn't pick up /etc/mysql/my.cnf
Bug #342578 reported by
Thomas
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mysql-dfsg-5.0 (Ubuntu) |
Invalid
|
Low
|
Unassigned |
Bug Description
Binary package hint: mysql-client-5.0
Ubuntu 8.04.1
mysql-client-
/usr/bin/mysqldump doesn't read /etc/mysql/my.cnf - it tries to read /etc/my.cnf and $HOMEDIR/.my.cnf, but thats it. An upstream, i.e. debian fellow told me that the debian package does work as it should. I've helped myself out with a symlink from /etc/my.cnf, but this should be fixed.
Yes, I know mysql-5.1 will also look for /etc/mysql/my.cnf (http://
Changed in mysql-dfsg-5.0: | |
status: | Incomplete → Invalid |
To post a comment you must log in.
Thank you for taking the time to report this bug and helping to make Ubuntu better.
Testing mysqldump on hardy shows that /etc/mysql/my.cnf is opened and read:
mathiaz@ t-mysql- h:~$ strace mysqldump 2>&1 | grep 'my.cnf' etc/mysql/ my.cnf" , {st_mode= S_IFREG| 0644, st_size=3926, ...}) = 0 etc/mysql/ my.cnf" , O_RDONLY) = 3 home/mathiaz/ .my.cnf" , 0x7fff0d7f0fc0) = -1 ENOENT (No such file or directory) usr/etc/ my.cnf" , 0x7fff0d7f0fc0) = -1 ENOENT (No such file or directory)
stat("/
open("/
stat("/
stat("/
Setting options under mysqldump section in /etc/mysql/my.cnf is also working correctly.
Could you outline what doesn't work for you?