mysql免密登录

# 免密登录
skip-grant-tables

然后重新启动mysql

/etc/init.d/mysqld restart

测试可行

执行完后将刚才添加的
skip-grant-tables 注释 然后重新启动mysql