Java News Tips Software
Java News Tips Software | Contact | Facebook | Twitter RSS

Rename a database in MySQL through Linux console

Steps to follow to rename a database in a Linux environment can be listed as follows.

1. Stop mysql
    Use $ kill -9 [processID]
2. Search the place where the database folders are stored
    Use $ mysqladmin variables | grep datadir
3. Goto the folder which contains the database folders
4. Rename the folder
    Use $ mv
5. Start mysql
    Use $ mysqld_safe &

Labels:


1 Comments

  1. Anonymous Anonymous on November 19, 2010 4:23 PM  
    ttt
ABOUT AUTHOR
Page Views :
Email :
PREVIOUS ARTICLES
Select Month:
TOP
Free counter and web stats