docker-entrypoint-set-charset.sh 156 Bytes
Newer Older
David Danier's avatar
mysql  
David Danier committed
1 2 3
#!/usr/bin/env sh

echo "ALTER DATABASE \`${MYSQL_DATABASE}\` CHARACTER SET utf8 COLLATE utf8_unicode_ci;" | mysql -u "${MYSQL_USER}" -p"${MYSQL_PASSWORD}"