mysql安装和数据目录变更
Centos
下载仓库源
sudo yum localinstall platform-and-version-specific-package-name.rpm编辑使用版本号
[mysql57-community]
name=MySQL 5.7 Community Server
baseurl=http://repo.mysql.com/yum/mysql-5.7-community/el/6/$basearch/
enabled=1
gpgcheck=1
gpgkey=[file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql](http://file///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql)安装mysql
修改数据存储目录
启动mysql并修改密码
创建新用户
最后更新于