Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/267.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
PHP/MYSQL更改用户名和密码_Php_Mysql - Fatal编程技术网

PHP/MYSQL更改用户名和密码

PHP/MYSQL更改用户名和密码,php,mysql,Php,Mysql,我的appserv有问题。我正在尝试登录以使用用户名和密码创建一个SQL数据库,但是它不起作用 这是config.inc.php摘录: $cfg['Servers'][$i]['auth_type'] = 'http'; $cfg['Servers'][$i]['user'] = 'albert'; $cfg['Servers'][$i]['password'] = '1234'; 请注意,我已将localhost更改为127.

我的appserv有问题。我正在尝试登录以使用用户名和密码创建一个SQL数据库,但是它不起作用

这是
config.inc.php
摘录:

$cfg['Servers'][$i]['auth_type']     = 'http';   
$cfg['Servers'][$i]['user']          = 'albert';      
$cfg['Servers'][$i]['password']      = '1234';      
请注意,我已将localhost更改为127.0.0.1,即使使用127.0.0.1/phpmyadmin也不起作用

$cfg['Servers'][$i]['host']          = '127.0.0.1'; 
这就是我得到的错误:

#1045 - Access denied for user 'albert'@'localhost' (using password: YES)

有什么建议吗?

这是身份验证失败的MySQL错误消息。您的用户名或密码不正确。如果您有cpanel或某种管理工具,请确保您有正确的用户名和密码。

根据所述的服务器登录凭据是错误的,这就是用户显示访问被拒绝的原因

谢谢,
JAY

您的mysql用户名、密码数据库名称或主机错误如果您的phpMyAdmin也不工作,则可能是服务器的配置问题。后来的“拒绝访问”是指错误的凭据。。。你需要验证它们。