修改密碼mysql
#mysqld_safe --skip-grant-tables --skip-networking &sql
#mysql -u rootui
MySql >update mysql.user set authentication_string=password('root123456') where user='root';spa
MySql >flush privileges;code
MySql >quit;server
修改用戶訪問權限ip
MySql >update user set host='%' where user = 'root';input
添加開機啓動string
#cp mysql.server /etc/init.d/mysqlit
#chmod +x /etc/init.c/mysql
#chkconfig --add mysql