Answer
Mar 06, 2009 - 03:13 AM
It seems you are trying to run the "-uroot -p databasename < backup.sql" query while being logged into the mysql console. This has no sense. You have to call the following command from the DOS prompt (while being on the 'bin' directory of the MySQL installation, or from any other place if the 'bin' directory is in the system path):
mysql -uroot -p databasename < backup.sql
The program will ask you for a password (if root access is password-protected or not stored anywhere) then perform the import automatically.
Hope this helps,
IronXavi
mysql -uroot -p databasename < backup.sql
The program will ask you for a password (if root access is password-protected or not stored anywhere) then perform the import automatically.
Hope this helps,
IronXavi
Add New Comment