Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/63.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
Mysql 错误1045(2800)_Mysql_Ubuntu_Zabbix_Mysql Error 1045 - Fatal编程技术网

Mysql 错误1045(2800)

Mysql 错误1045(2800),mysql,ubuntu,zabbix,mysql-error-1045,Mysql,Ubuntu,Zabbix,Mysql Error 1045,我目前正试图在Ubuntu上配置Zabbix。我下载了设备版本,因为我不熟悉Ubuntu和设备版本,这使得安装更容易。但是,我当前遇到以下错误代码: 错误1045(2800):拒绝用户“root”@“localhost”的访问(使用 密码:是) 您应该首先在没有这样的密码的情况下进行连接 mysql -u root 现在可以使用此命令重置根密码 UPDATE user SET Password=PASSWORD('your_new_password') where USER='root';

我目前正试图在Ubuntu上配置Zabbix。我下载了设备版本,因为我不熟悉Ubuntu和设备版本,这使得安装更容易。但是,我当前遇到以下错误代码:

错误1045(2800):拒绝用户“root”@“localhost”的访问(使用 密码:是)


您应该首先在没有这样的密码的情况下进行连接

mysql -u root
现在可以使用此命令重置根密码

UPDATE user SET Password=PASSWORD('your_new_password') where USER='root'; 
然后刷新特权

FLUSH PRIVILEGES;
如果您执行了这些步骤,它现在应该可以工作了

来源


谢谢,我稍后会尝试一下