Joke Collection Website - Blessing messages - How to modify MySQL database name
How to modify MySQL database name
Modify the MySQL database name as follows:
1. statement modification method:
Rename the database database name to the new database name.
This syntax was added in mysql 5. 1.7 and deleted in MySQL 5. 1.23.
2. If all tables are of MyISAM type, you can change the name of the folder.
Rename the db_name directory in the data directory to new_db_name.
3. Rename all tables
The code is as follows:
4.mysqldump exports data, and then imports data.
The code is as follows:
5. Rename all tables using a shell script.
The code is as follows:
- Previous article:What qualities does an excellent marketing manager need?
- Next article:How does Unicom send short messages for free?
- Related articles
- Why can't the mobile phone receive electricity information?
- Can the magnificent hotel last for another hour?
- How to handle the SMS package business?
- Funny greetings for brothers' marriage
- Clever handling of boyfriends and ex-girlfriends
- May Day Travel Blessing SMS [3]
- Always receive 10655133 text messages
- What does it mean that China Mobile's red list protection will expire soon?
- How to check the flow of mobile phone gifts
- Which bank should ETC handle?