centos7 mysql8.0 授予root用户全部权限

grant all privileges on database_name.* to 'username'@'localhost'; flush privileges;