1、命令:yum -y install mysql mysql-server mysql-devel

2、重启:service mysqld restart

3、初设密码:mysqladmin -u root password 'root'

    倘若重置密码:mysql -u root -p

                       update user set password=password('root') where user='root' and host='localhost';

                       Flush PRIVILEGES;

4、远程访问:GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION;

                  Flush PRIVILEGES;

5、vi /etc/sysconfig/iptables  

    增加 -A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT

    service iptables restart

相关文章:

  • 2021-07-22
  • 2021-08-29
  • 2021-05-08
  • 2022-01-11
  • 2018-12-02
  • 2021-05-29
  • 2022-01-10
  • 2022-01-10
猜你喜欢
  • 2021-11-09
  • 2021-08-05
  • 2021-07-12
  • 2022-12-23
  • 2021-11-20
  • 2021-07-06
  • 2022-12-23
相关资源
相似解决方案