在WampServer中恢复MySQL数据库
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了在WampServer中恢复MySQL数据库相关的知识,希望对你有一定的参考价值。
Go to the Windows command line by going to Start -> Run and typing in cmd.You need to change directory to the mysql bin directory. On my version, the directory is c:wampinmysqlmysql4.1.22in.
Therefore, the command to change to this directory is:
cd wampinmysqlmysql4.1.22in
Put the MySQL dump (SQL file) into the above directory
Create the new database in phpmyAdmin (or on the command line)
The actual restore command is slightly different to normal (see below).
Note that is says mysql.exe rather than the normal mysql.
When it asks you for a password, just hit enter. There is no password associated with the database that you created (unless you prefer to have one. But as it is local, there is no need).
mysql.exe -u root -p databasename < filename.sql
以上是关于在WampServer中恢复MySQL数据库的主要内容,如果未能解决你的问题,请参考以下文章