Mysql安装配置

更改源(centos7下无法直接安装)
 wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
 rpm -ivh mysql-community-release-el7-5.noarch.rpm
安装mysql
 yum install mysql mysql-server mysql-devel
修改mysql密码
  • 添加远程帐号:

GRANT ALL PRIVILEGES ON . TO 'root'@'%' IDENTIFIED BY 'asdf**SaaSD#$...' WITH GRANT OPTION;FLUSH PRIVILEGES;

  • 修改数据表方法修改帐号
  • 数据ky

你可能感兴趣的