Skip to content

Instantly share code, notes, and snippets.

@pburkholder
Created December 15, 2015 16:27
Show Gist options
  • Save pburkholder/bcc9ca060a5ac871e676 to your computer and use it in GitHub Desktop.
Save pburkholder/bcc9ca060a5ac871e676 to your computer and use it in GitHub Desktop.
mysql_client 'default' do
version node['mysql']['version']
action [:create]
end
file '/etc/my.cnf' do
content <<-END
[client]
default-character-set = utf8
socket = /var/run/mysql-default/mysqld.sock
END
mode '00644'
end
# this should now work:
# mysql -u root -pilikerandompasswords
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment