首页 > 数据库 > MySQL > 正文

Centos6.9安装Mysql5.7.18步骤记录

2024-07-24 13:13:41
字体:
来源:转载
供稿:网友

安装顺序rpm -ivh

mysql-community-common-5.7.18-1.el7.x86_64.rpmmysql-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 -ygroupadd mysqluseradd -r -g mysql mysqlmkdir -p /usr/local/mysqlmkdir -p /data/mysqldbtar -zxvf mysql-boost-5.7.18.tar.gz  后进行安装vi /etc/my.cnfdatadir=/data/mysqldb/socket=/data/mysqldb/mysql.sockexplicit_defaults_for_timestamp=truemysqld --initialize ln –s /data/mysql/mysql.sock /var/lib/mysql/chown mysql:mysql /var/lib/mysql -Rchmod -R 777 /data/mysqldbservice 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 restartmysql -uroot -ppasswordSET PASSWORD = PASSWORD('password');

以上所述是小编给大家介绍的Centos6.9安装Mysql5.7.18步骤记录,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对VeVb武林网网站的支持!


注:相关教程知识阅读请移步到MYSQL教程频道。
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表