输入banner图图片脚本导航/分类

linux-数据如果直接输入mysql-hIP报错?

mysqllinux

linux 的登录用户是 root

数据如果直接输入 mysql -hIP 报错:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)。
然后说权限问题。
然后执行赋权操作

grant all privileges on . to 'root'@'%' identified by 'mysql';
grant all privileges on . to 'root'@'localhost‘ identified by 'mysql';
flush privileges;
然后依然不可以连接。请大神们指教。