At shell command prompt:
mysqladmin -u"username" -p"password" --default-character-set=utf8 CREATE my_db_schema
--default-character-set=utf8
seems to have no effect and I don't understand why.
Database gets created, but character set is latin1
with collation latin1_swedish_ci
.
I found this question, which would seem to be the same issue, but even when I tried a non-root user as the selected answer suggested, I get identical behavior:
(I'm using Windows and MariaDB if that makes any difference)
I have tried these mysqladmin.exe clients:
- MariaDB 5.3.2 for Win32 (ia32) with default character set
latin1
(no .ini) - MySQL 5.0.77 for linux-gnu (i686) with default character set
utf8
In both cases, --default-character-set=utf8
or --default-character-set=latin1
do NOT override the MySQL server's .ini/.cnf settings.