In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly explains "Mysql5.7 how to restore the database through mysqldump", the content of the article is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "Mysql5.7 how to restore the database through mysqldump" bar!
[root@test tmp] # du-sh test.sql
17G test.sql
Files backed up by mysqldump
[root@test] # mysql-uroot-ptestpassword-- default-character-set=utf8 test
< /tmp/test.sql mysql: [Warning] Using a password on the command line interface can be insecure. ERROR 1049 (42000): Unknown database 'test' 报错 MySQL [(none)]>Create database test
Query OK, 1 row affected (0.00 sec)
[root@test] # mysql-uroot-ptestpassword-- default-character-set=utf8 test < / tmp/test.sql
Mysql: [Warning] Using a password on the command line interface can be insecure.
Restore completed
[root@test ~] # mysql-uroot-p database password-- default-character-set=utf8 database < / tmp/pousheng_b2b2c_prepub2017101.sql
Mysql: [Warning] Using a password on the command line interface can be insecure.
The database files are all in this directory:
[root@test mysql] # pwd
/ data/mysql
[root@test mysql] # du-sh test
23G test
Restored database size
Thank you for your reading, the above is the content of "how Mysql5.7 restores the database through mysqldump". After the study of this article, I believe you have a deeper understanding of how Mysql5.7 restores the database through mysqldump, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.