《Mysql入门Centos6.9安装Mysql5.7.18步骤记录》要点:
本文介绍了Mysql入门Centos6.9安装Mysql5.7.18步骤记录,希望对您有用。如果有疑问,可以联系我们。
MYSQL入门安装顺序rpm -ivh
MYSQL入门
mysql-community-common-5.7.18-1.el7.x86_64.rpm
mysql-community-libs-5.7.18-1.el7.x86_64.rpm(依赖于common)
mysql-community-client-5.7.18-1.el7.x86_64.rpm(依赖于libs)
mysql-community-server-5.7.18-1.el7.x86_64.rpm(依赖于common,client)
mysql-community-devel-5.7.18-1.el7.x86_64.rpm(MySQL头文件和库文件)
yum install gcc gcc-c++ ncurses-devel perl
yum install cmake -y
groupadd mysql
useradd -r -g mysql mysql
mkdir -p /usr/local/mysql
mkdir -p /data/mysqldb
tar -zxvf mysql-boost-5.7.18.tar.gz 后进行安装
vi /etc/my.cnf
datadir=/data/mysqldb/
socket=/data/mysqldb/mysql.sock
explicit_defaults_for_timestamp=true
mysqld --initialize
ln Cs /data/mysql/mysql.sock /var/lib/mysql/
chown mysql:mysql /var/lib/mysql -R
chmod -R 777 /data/mysqldb
service mysqld stop
mysqld_safe --skip-grant-tables &
mysql -uroot -p
>use mysql;
> update user set authentication_string=PASSWORD("password") where user="root";
update user set host='%' where user="root";
FLUSH PRIVILEGES;
service mysqld restart
mysql -uroot -ppassword
SET PASSWORD = PASSWORD('password');
MYSQL入门以上所述是小编给大家介绍的Centos6.9安装Mysql5.7.18步骤记录,希望对大家有所赞助,如果大家有任何疑问请给我留言,小编会及时回复大家的.在此也非常感谢大家对维易PHP网站的支持!
欢迎参与《Mysql入门Centos6.9安装Mysql5.7.18步骤记录》讨论,分享您的想法,维易PHP学院为您提供专业教程。
转载请注明本页网址:
http://www.vephp.com/jiaocheng/9866.html