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