Mysql備份還原語句
mysql備份語句:
E:/MySQL Server 5.0/bin>mysqldump -uroot -padmin --default-character-set=utf8 --opt --extended-insert=false --triggers -R --hex-blob -x sampledb >sampledb.sql
mysql還原前得先建立資料庫再用下面的語句:
E:/MySQL Server 5.0/bin>mysql -uroot -padmin sampledb < sampledb.sql
————————————————
mysql -uroot -proot sampledb < E:/sampledb.sql
歡迎您關注我的公衆.号:學習微站(studysth)