错误展示:
解决办法:
create user 'hadoopguide'@'localhost' identified by 'hadoopguide';
grant all privileges on hadoopguide.* to 'hadoopguide'@'localhost' with grant option;
效果图:
错误原因:
MySQL 8.0 及以上版本不允许在授予权限时隐式创建用户。所以显式创建用户后再授予权限
ps:
删除用户drop user 'hadoopguide'@'localhost';