Can I use ALTER DATABASE to rename a mysql database?

Posted by thearchitect on Stack Overflow See other posts from Stack Overflow or by thearchitect
Published on 2010-04-14T13:44:29Z Indexed on 2010/04/14 14:43 UTC
Read the original article Hit count: 152

Filed under:
|
|
|
|

I am using PDO with PHP to create a new database and then a new user with privileges on that database. In case one of them fails, I want to rename the database and user so that they can be deleted later and the names are available.

Is it possible to rename a mysql database using the ALTER DATABASE?

© Stack Overflow or respective owner

Related posts about pdo

Related posts about php