国产成人精品18p,天天干成人网,无码专区狠狠躁天天躁,美女脱精光隐私扒开免费观看

Mysql5.7怎么通過(guò)mysqldump還原數據庫

發(fā)布時(shí)間:2021-08-23 15:07 來(lái)源:億速云 閱讀:0 作者:chen 欄目: Mysql 歡迎投稿:712375056

這篇文章主要講解了“5.7怎么通過(guò)mysqldump還原數據”,文中的講解內容簡(jiǎn)單清晰,易于學(xué)習與理解,下面請大家跟著(zhù)小編的思路慢慢深入,一起來(lái)研究和學(xué)習“Mysql5.7怎么通過(guò)mysqldump還原數據庫”吧!

[root@test tmp]# du -sh test.sql
17G     test.sql
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.
還原完成

[root@test ~]# mysql -uroot -p數據庫密碼 --default-character-set=utf8 數據庫 < /tmp/pousheng_b2b2c_prepub2017101.sql
mysql: [Warning] Using a password on the command line interface can be insecure.

數據庫文件都在這個(gè)目錄下:
[root@test mysql]# pwd
/data/mysql

[root@test mysql]# du -sh test
23G     test
還原后的數據庫大小

免責聲明:本站發(fā)布的內容(圖片、視頻和文字)以原創(chuàng )、來(lái)自本網(wǎng)站內容采集于網(wǎng)絡(luò )互聯(lián)網(wǎng)轉載等其它媒體和分享為主,內容觀(guān)點(diǎn)不代表本網(wǎng)站立場(chǎng),如侵犯了原作者的版權,請告知一經(jīng)查實(shí),將立刻刪除涉嫌侵權內容,聯(lián)系我們QQ:712375056,同時(shí)歡迎投稿傳遞力量。

果冻传媒一二三产区| 久久精品久久久久久噜噜| 波多野结衣一区二区三区AV免费| 亚洲阿V天堂网2019无码| 成人欧美一区二区三区视频| 美女又黄又免费的视频|