rename mysql database using command line

mysqladmin -u username -p create NEW_DB_NAME
mysqldump -u root -pPASSWORD OLD_DB_NAME|mysql -u root -pPASSWORD NEW_DB_NAME

Leave a comment

Your email address will not be published.