Step 1:
Ask this question on the MySQL mailing list. :)

(Sorry, I couldn't resist)

The easiest way I can think of is to use MySQLDump to dump the schema and
data, delete the original database, change the output of mysqldump to
reflect the new database name and pump it back into mysql.  Depending on
your database size, this may or may not work.


Cal
http://www.calevans.com


-----Original Message-----
From: Fang Li [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 24, 2001 3:21 PM
To: [EMAIL PROTECTED]
Subject: [PHP] how to rename a database



Does anyone know how to rename a database in MySQL?
Thanks!

fang

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to