Linux中mysql還原方法:
1、 先解壓資料庫檔案、解壓指令gunzid
2、 連接配接資料庫(mysql –h ip –u 使用者名 -p)、切換到要還原的資料庫下面show databases;注:在mysql裡輸完指令要以“;”結束,進入資料庫:use 接資料庫名 show tables 檢視表
3、 Source /home/ruichen20120624.sql (home是備份檔案路徑,ruichen20120624.sql是資料庫名)
Linux中mysql還原方法:
1、 先解壓資料庫檔案、解壓指令gunzid
2、 連接配接資料庫(mysql –h ip –u 使用者名 -p)、切換到要還原的資料庫下面show databases;注:在mysql裡輸完指令要以“;”結束,進入資料庫:use 接資料庫名 show tables 檢視表
3、 Source /home/ruichen20120624.sql (home是備份檔案路徑,ruichen20120624.sql是資料庫名)