简体   繁体   English

ERROR 1045 (28000): Access denied for user in xampp Local Host

[英]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
  1. -h is the host or ip address of the external MySQL service location. -h为外部 MySQL 服务位置的主机或 ip 地址。
  2. -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.

相关问题 SQLSTATE [28000] [1045]用户&#39;root&#39;@ host的访问被拒绝 - SQLSTATE[28000] [1045] Access denied for user 'root’@host 错误:cPanel SQL数据库上的“ SQLSTATE [28000] [1045]用户拒绝访问” - Error: “SQLSTATE[28000] [1045] Access denied for user” on cPanel SQL database PDOException:SQLSTATE [28000] [1045]用户的访问被拒绝 - PDOException: SQLSTATE[28000] [1045] Access denied for user SQLSTATE [28000] [1045]用户&#39;root&#39;拒绝访问 - SQLSTATE[28000] [1045] Access denied for user 'root' drush si故障用户具有访问权限,无法创建数据库:错误1045(28000):用户的访问被拒绝 - drush si failure user has access, Failed to create database: ERROR 1045 (28000): Access denied for user XAMPP PhpMyAdmin错误1045,“用户&#39;root&#39;@&#39;localhost&#39;的访问被拒绝 - XAMPP PhpMyAdmin Error 1045, "Access denied for user 'root'@'localhost' (我的本地主机上没有这个问题)... SQLSTATE[28000] [1045] 用户'myworldm_ecommerce'@'cp-9.hkdns.co.za'的访问被拒绝 - (I don't have this problem on my local host)… SQLSTATE[28000] [1045] Access denied for user 'myworldm_ecommerce'@'cp-9.hkdns.co.za' 显示错误:mysqli::real_connect(): (28000/1045): 用户 &#39;user&#39;@&#39;192.188.145.163&#39; 访问被拒绝(使用密码:是) - Showing Error: mysqli::real_connect(): (28000/1045): Access denied for user 'user'@'192.188.145.163' (using password: YES) 同一台计算机上的Web服务器和MySQL服务器“错误:(28000/1045)用户被拒绝访问” - Webserver and MySQL server on same machine “Error :(28000/1045) Access denied for user ” MySQLI 28000/1045用户&#39;root&#39;@&#39;localhost&#39;的访问被拒绝 - MySQLI 28000/1045 Access denied for user 'root'@'localhost'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM