List:General Discussion« Previous MessageNext Message »
From:Gleb Paharenko Date:August 22 2005 8:34am
Subject:Re: renaming a database
View as plain text  
Hello.

One possible solution is to create a new database, and then RENAME TABLE
each table from the original database into the new database. Then
drop the original database.


"Octavian Rasnita" <orasnita@stripped> wrote:
> Hi,
> 
> Please tell me how to rename a database. I couldn't find this in the manual.
> I have tried to rename manually the name of the directory that holds that
> database, but some tables can't be accessed after that. (I have found that
> they are InnoDB tables, even though I never specified that I want this type
> of engine when creating the tables).
> 
> Thank you.
> 
> 
> Teddy
> 
> 
> 


-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.NET http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Gleb Paharenko
 / /|_/ / // /\ \/ /_/ / /__   Gleb.Paharenko@stripped
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.NET
       <___/   www.mysql.com



Thread
renaming a databaseOctavian Rasnita21 Aug
  • Re: renaming a databasePeter Brawley21 Aug
  • Re: renaming a databaseGleb Paharenko22 Aug