Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Renaming a Database???

Status
Not open for further replies.

colep

Programmer
Jul 18, 2002
58
US
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???

Thanks in advance,
Cole ;)
 
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: TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top