mysql问题及其解决办法_MySQL
程序员文章站
2023-12-31 09:57:22
...
unauthenticated user:
打开mysql的配置文件(my.cnf),在[mysqld]下面增加一行:
skip-name-resolve
RPM安装的mysql找不到my.cnf:
复制/usr/share/mysql/my-medium.cnf文件到/etc目录,并改名为my.cnf即可:cp /usr/share/mysql/my-medium.cnf /etc/my.cnf