Tag: linux
-
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
mysqladmin -u username -p create NEW_DB_NAME mysqldump -u root -pPASSWORD OLD_DB_NAME|mysql -u root -pPASSWORD NEW_DB_NAME