[英]ERROR 1045 (28000): Access denied for user in xampp Local Host
Hi I am trying to import my db dump of wordpress site in local system by cmd comman line using xammp server嗨,我正在尝试使用 xammp 服务器通过 cmd 命令行在本地系统中导入我的 wordpress 站点的数据库转储
command line命令行
mysql -u proxsa1 -p **********< proxsa1.sql
it diverting me on below step它让我转向下面的步骤
Next Step:下一步:
F:\xampp\mysql\bin>mysql -u proxsa1 -p ********< proxsa1.sql
Enter password:
After submitting the same password of DB i am getting this error any idea how to fix提交相同的数据库密码后,我收到此错误,知道如何修复
ERROR 1045 (28000): Access denied for user 'proxsa1'@'localhost' (using password: NO)
'#o' is not recognized as an internal or external command,
operable program or batch file.
'79I' is not recognized as an internal or external command,
operable program or batch file.
Any solutions step by step任何解决方案一步一步
The -p
and password shouldn't have space(s) in between and should have space between password and <
. -p
和密码之间不应有空格,密码和<
之间应有空格。 Hence, you code should be written like:因此,您的代码应编写为:
mysql -u proxsa1 -p********** dbname < proxsa1.sql
eg例如
mysql -u user -pPASSWORD dbname < file.sql
Edit:编辑:
If you're importing to a different location, the command line should be something like this:如果您要导入到不同的位置,命令行应该是这样的:
mysql.exe -h host/ip_address -P port(optional) -u user -pPASSWORD dbname < file.sql
-h
is the host or ip address of the external MySQL service location. -h
为外部 MySQL 服务位置的主机或 ip 地址。-P
(port) is only used when the MySQL service port is different than the default (usually 3306
). -P
(端口)仅在 MySQL 服务端口与默认值(通常为3306
)不同时使用。 My usual command line looks like this:mysql.exe -h mydb.com -P 3388 -u user -pPASSWORD dbname < file.sql
OR或者
mysql.exe -h 192.168.1.1 -P 3388 -u user -pPASSWORD dbname < file.sql
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.