How to rename a MySQL database (change schema name)?
P粉320361201
P粉320361201 2023-08-23 13:09:22
0
2
370
<p>How to quickly rename a MySQL database (change its schema name)? </p> <p>Usually I just dump the database and re-import it with a new name. For very large databases this is not an option. Apparently <code>RENAMED {DATABASE|SCHEMA} db_name TO new_db_name;</code> does something bad, only exists in a few versions, and is overall a bad idea. </p> <p>This needs to be used with InnoDB, which stores very different content than MyISAM. </p>
P粉320361201
P粉320361201

reply all(2)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!