Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Create mysql database with character set to utf8.

Current database does not allow unicode strings because it's created
with wrong character set. This commit replaces mysqladmin command with
mysql, which allows us to set CHARACTER SET on creation.
  • Loading branch information...
commit 990b6a8aeca557623f646d2a6f4355b4a4972bba 1 parent d468599
Giorgos Logiotatidis authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  puppet/manifests/classes/playdoh.pp
2  puppet/manifests/classes/playdoh.pp
@@ -10,7 +10,7 @@
10 10
     }
11 11
 
12 12
     exec { "create_mysql_database":
13  
-        command => "mysqladmin -uroot create $DB_NAME",
  13
+        command => "mysql -uroot -B -e'CREATE DATABASE $DB_NAME CHARACTER SET utf8;'",
14 14
         unless  => "mysql -uroot -B --skip-column-names -e 'show databases' | /bin/grep '$DB_NAME'",
15 15
         require => File["$PROJ_DIR/settings/local.py"]
16 16
     }

0 notes on commit 990b6a8

Please sign in to comment.
Something went wrong with that request. Please try again.