I'm trying to restore a mysql backup in XAMPP - Windows 7 using the following command:
mysqlimport.exe -u username -p password nameOfNewDB < backupFile.sql
The machine I'm working on is attached to a network, so I checked my username using whoami and I got:
rms\johndoe
So I tried:
mysqlimport.exe -u rms\johndoe -p password nameOfNewDB < backupFile.sql
it asks me for the password, after entering it, it says:
Error: 1045 Access denied for user 'rms/johndow'@'localhost' (using password: YES)
Then I tried only with johndoe, same error, then I tried using .\\admin (I've got the admin password), same error, I also tried .\\administrator, admin, administrator and nothing yet.
Note: I'm using cmd because the database is very large and I cannot do it using phpmyadmin.
Any suggestion?
Thanks.
尝试使用root作为用户名和root用户的密码。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.