Is there a way to rename a database like the rename table command?? I haven't been able to find any info on it at mysql.com.... If not, what would be the easiest way to accomplish this???
MySQL does not have command-line functionality to rename a database. However, if you have access to the filesystem of the database server, you can shutdown MySQL (you must do this first), rename the directory in which the database's table files reside, then restart MySQL. Want the best answers? Ask the best questions:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.