Skip to content

Commit

Permalink
create database with backticks
Browse files Browse the repository at this point in the history
  • Loading branch information
Alberto committed Sep 25, 2012
1 parent e4b40d7 commit b9cf1e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deploy/recipes/mysql.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
mysql_command = "/usr/bin/mysql -u #{deploy[:database][:username]} #{node[:mysql][:server_root_password].blank? ? '' : "-p#{node[:mysql][:server_root_password]}"}"

execute "create mysql database" do
command "#{mysql_command} -e 'CREATE DATABASE \'#{deploy[:database][:database]}\'' "
command "#{mysql_command} -e 'CREATE DATABASE `#{deploy[:database][:database]}`' "
action :run

not_if do
Expand Down

0 comments on commit b9cf1e8

Please sign in to comment.