Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#9650 - mysqld upgrade break existing configuration
Attached to Project:
Arch Linux
Opened by Nicolas Doualot (slubman) - Friday, 22 February 2008, 09:08 GMT
Last edited by Aaron Griffin (phrakture) - Friday, 17 October 2008, 18:57 GMT
Opened by Nicolas Doualot (slubman) - Friday, 22 February 2008, 09:08 GMT
Last edited by Aaron Griffin (phrakture) - Friday, 17 October 2008, 18:57 GMT
|
DetailsDescription: Upgrading mysqlq can break an existing mysql configuration and make database connections unavailables
I have configured mysql in /etc/my.cnf with a datadir different from the default one. Additional info: * package version(s) : mysql 5.0.51-3 Steps to reproduce: * Change datadir directory * Upgrade mysql * Restart the daemon Proposed solution: * Display a message on upgrade about this change. * Change the way /etc/conf.d/mysqld set options more like other daemon (lighttpd, openttpd ...), so that you can pass COMPLETE option (something like "-d /var/lib/mysql" instead of overwriting the one found in /etc/my.cnf has it does actually. |
This task depends upon
Closed by Aaron Griffin (phrakture)
Friday, 17 October 2008, 18:57 GMT
Reason for closing: Not a bug
Additional comments about closing: You can configure MYSQLD_ROOT for the rc.d script in /etc/conf.d/mysqld
Friday, 17 October 2008, 18:57 GMT
Reason for closing: Not a bug
Additional comments about closing: You can configure MYSQLD_ROOT for the rc.d script in /etc/conf.d/mysqld
Workaround: you have to add this line at the end of your /etc/rc.conf file:
MYSQLD_ROOT="/path/to/data/dir"