MySQL - ALTER DATABASE
ALTER DATABASE mydb CHARACTER SET latin1 COLLATE latin1_swedish_ci

Changing the default character set or collation affects only creation of new tables. It does not affect existing tables. The database name is optional. If no database is specified, then ALTER DATABASE use the default (currently selected) database. You cannot use ALTER TABLE to rename a database. One way to accomplish this is to dump the database, create a database with the new name, reload the data into the new database, and drop the old database.

page_revision: 0, last_edited: 1230334352|%e %b %Y, %H:%M %Z (%O ago)
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License