Skip to content

Instantly share code, notes, and snippets.

@icamys icamys/rename_db.sh
Last active Jul 25, 2018

Embed
What would you like to do?
Rename mysql database alternative
#!/bin/bash
mysqldump old_database_name > dump.sql
mysqladmin create new_database_name
mysql new_database_name < dump.sql
mysqladmin drop old_database_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.