mysql数据库跳过密码验证的设置方法

root@host51 ~]# vim /etc/my.cnf

[mysqld]

skip-grant-tables  -----添加此行,该行的意思是跳过授权