From b9cf1e82629cd39bfd0492999d7e725ca084675c Mon Sep 17 00:00:00 2001 From: Alberto Date: Tue, 25 Sep 2012 16:07:05 +0200 Subject: [PATCH] create database with backticks --- deploy/recipes/mysql.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/recipes/mysql.rb b/deploy/recipes/mysql.rb index f865e52..a989332 100644 --- a/deploy/recipes/mysql.rb +++ b/deploy/recipes/mysql.rb @@ -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