23 words, 1 min read
It is as simple as:
mysqldump -u user db1 > dump.sql
mysqladmin -u user create db2
mysql -u user db2 < dump.sql
If this post was enjoyable or useful for you, please share it! If you have comments, questions, or feedback, you can email my personal email. To get new posts, subscribe use the RSS feed.