:: DEVELOPER ZONE
ALTER {DATABASE | SCHEMA} [db_name]
alter_specification [, alter_specification] ...
alter_specification:
[DEFAULT] CHARACTER SET charset_name
| [DEFAULT] COLLATE collation_name
ALTER DATABASE allows you to change the overall
characteristics of a database. These characteristics are stored in
the db.opt file in the database directory. To
use ALTER DATABASE, you need the
ALTER privilege on the database.
The CHARACTER SET clause changes the default
database character set. The COLLATE clause
changes the default database collation. Character set and collation
names are discussed in Chapter 10, Character Set Support.
ALTER DATABASE was added in MySQL 4.1.1.
Beginning with MySQL 4.1.8, the database name can be omitted. The
statement applies to the default database in this case.
ALTER SCHEMA can be used as of MySQL 5.0.2.
© 1995-2005 MySQL AB. All rights reserved.

User Comments
Warning: query failed: Unknown column 'user.firstname' in 'field list' in /data0/sites/live/web-main/lib/mysql-cxn.php on line 69
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /data0/sites/live/web-main/lib/docbook.php on line 245
Add your own comment.