MYSQL 開檔

進來到這邊以後輸入帳密登入
帳號密碼錯誤
先關服務 開始下指令
service mysql stop
cd /usr/bin
mysqld_safe --skip-grant-tables &
意思切去 /usr/bin根目錄 啟動mysql不啟動權限表
意思就是略過root
意思就是略過root

mysql -u root
mysqladmin -u root password 'csiecsie'
上面那行就是你要讓你的root密碼變成什麼這裡是把root的帳號密碼變成csicsie
匯出資料庫

左邊可以看到可以選擇哪個資料庫如果這選項是空白那就是所有資料庫,現在來用看看怎麼導出一個資料庫
選擇一個資料庫叫做mysql

現在點選匯出 這邊會把資料庫的所有表倒出

這邊我們選擇為存檔 並存成.sql檔

成功的話會看到這畫面

匯入資料庫

點選匯入選檔案


然後執行

這邊會出錯因為已經有個資料庫叫做mysql了