To change the character set to latin1 for the BookSales database, use the following ALTER DATABASE statement
mysql>
mysql> CREATE DATABASE BookSales
-> DEFAULT CHARACTER SET latin1
-> DEFAULT COLLATE latin1_bin;
Query OK, 1 row affected (0.00 sec)
mysql>
mysql>
mysql> ALTER DATABASE BookSales
-> CHARACTER SET latin1;
Query OK, 1 row affected (0.00 sec)
mysql>
mysql> drop database BookSales;
Query OK, 0 rows affected (0.00 sec)
mysql>
Related examples in the same category