匯出資料庫
PATH=C:\wamp\bin\mysql\mysql5.5.8\bin REM export 'dbname' database mysqldump -uroot -p1234 --default-character-set=utf8 dbname > dbname.sql REM other dbname ... pause
匯入資料庫
PATH=C:\wamp\bin\mysql\mysql5.5.8\bin REM import 'dbname' database mysql -uroot -p1234 -e "DROP DATABASE IF EXISTS `dbname`;" mysql -uroot -p1234 -e "CREATE DATABASE `dbname` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;" mysql -uroot -p1234 --default-character-set=utf8 dbname < dbname.sql REM other dbname ... pause
0 回應:
張貼留言