i just want to know how to rename mysql database name in mysql ... if u know than let me know its too urgent....
thanks in advance
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Lalit MRank #1,186 · 1.5K reputationPosted Jan 15, 2010, 9:39 PM EST
One suggestion I encountered is to stop MySQL, locate the directory that holds your data (on my system, this is /var/lib/mysql/
more info
Kirtan PatelRank #292 · 8.6K reputationPosted Jan 16, 2010, 5:19 AM EST
Earlier version of mYsql having syntax
rename database db_name newname but its removed in new versions .as it has some problems with my sql so simply follow below 3 commandsRun this 3 commands at cmd
mysqldump -u username -p -v olddatabase > olddbdump.sqlmysqladmin -u username -p create newdatabasemysql -u username -p newdatabase < olddbdump.sql
if my answer helps you then please check "do you like this answer" check box :-)
Naeem KhanRank #2,072 · 698 reputationPosted Jan 22, 2010, 7:55 PM EST
thanks in Advance