本机mysql连接的有关问题

本机mysql连接的问题

在linux上面,hive和mysql server配置在同一台机子上面,用shell时一直报这个错误。

Access denied for user ‘root’@’localhost’ (using password: YES)

在window上面写个简单的java程序连接正常。。查了半天,发现users表里面有两条记录。

host??????????????????????????????????? user???? password

%??????????????????????????????????????? root????? *4DF1D66463C18D44E3B001A8FB1BBFBEA13E27FC

localhost???????????????????????????? root?????? 空的。

?

两个root的密码不一样的。。用命令改成一样的ok了。。

GRANT ALL PRIVILEGES ON *.* TO ‘root’@’localhost’ IDENTIFIED BY ‘root’;

?

本机mysql连接的有关问题

相关文章:

你感兴趣的文章:

标签云: