注释掉/etc/mysql/mariadb.conf.d/50-server.cnf大概26行,#bind_address=127.0.0.1
win10下载官网的zip源码安装mysql
修改密码,alter user 'root'@'localhost' identified with mysql_native_password by 'root';
今天在南宁PHP群,有位大神提出一个当天的面试题。
当修改某个用户的权限时,会报“Access denied for user 'root'@'%' to database”,这是因为root用户没有grant权限。