Issue Details (XML | Word | Printable)

Key: COOK-253
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Joshua Timberman
Reporter: Alex Soto
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Chef Cookbooks

mysql::server recipe fails on RedHat family systems because /etc/mysql does not exist

Created: 08/Feb/10 11:57 PM   Updated: 11/Jul/10 08:12 AM   Resolved: 11/Jul/10 08:12 AM
Component/s: None
Affects Version/s: None
Fix Version/s: None


 Description  « Hide

It seems that on redhat systems, only the template for grants.sql requires the existence of /etc/mysql.

I've updated the mysql::server recipe to create the/etc/mysql directory if it doesn't exist. See this commit <http://github.com/apsoto/cookbooks/commit/1f6ac3dae8b666ba250f055305dae9a0973442b1>

However, it's possible there is a more appropriate location for grants.sql on redhat systems.

Another idea might be to put my.cnf in /etc/mysql and symlink /etc/my.cnf to /etc/mysql/my.cnf so files are grouped together.



Sort Order: Ascending order - Click to sort in descending order
Joshua Timberman added a comment - 11/Jul/10 08:12 AM

Setting to /etc/mysql_grants.sql.

Pushed to opscode/master.