I looked through the documentation on MySQL and it looks like they removed the “rename database” option. Here’s a workaround:
mysqladmin create [Name of new database]
mysqldump –opt [Name of old database] | mysql [Name of new database]
I looked through the documentation on MySQL and it looks like they removed the “rename database” option. Here’s a workaround:
mysqladmin create [Name of new database]
mysqldump –opt [Name of old database] | mysql [Name of new database]