Red Hat Enterprise Linux 7 / Oracle Linux 7 (Architecture Independent), RPM Package 25.1K Download (mysql57-community-release-el7-11.noarch.rpm)
shell> yum search libaio # search for info(Mysql安装需要以来libaio库,所以需要先安装libaio库) shell> yum install libaio # install library shell> groupadd mysql shell> useradd -r -g mysql -s /bin/false mysql shell> cd /usr/local shell> tar zxvf /path/to/mysql-VERSION-OS.tar.gz shell> ln -s full-path-to-mysql-VERSION-OS mysql shell> cd mysql shell> mkdir mysql-files shell> chmod 750 mysql-files shell> chown -R mysql . shell> chgrp -R mysql . shell> bin/mysql_install_db --user=mysql # MySQL 5.7.5 (mysql5.7.5选择使用这个命令,如果你的mysql是5.7.6及以上,不需要执行这个命令) shell> bin/mysqld --initialize --user=mysql # MySQL 5.7.6 and up shell> bin/mysql_ssl_rsa_setup # MySQL 5.7.6 and up shell> chown -R root . shell> chown -R mysql data mysql-files shell> bin/mysqld_safe --user=mysql & # Next command is optional shell> cp support-files/mysql.server /etc/init.d/mysql.server
[root@***** /]# cd ~ #这里有一个问题,不知道需要需要切换到 “~”目录,之前没有“~”,启动不成功,不确定是我sytemctl start mysqld.service命令输入错了还是别的原因。 [root@***** ~]# sytemctl start mysqld.service
[root@***** ~]# sytemctl status mysqld.service
grep'temporary password'/var/log/mysqld.log 2017-05-10T00:55:46.982233Z 1 [Note] A temporary password is generated for root@localhost: 5C::+lMjqi+z
[root@****** ~]# mysql -uroot -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 5 Server version: 5.7.18
mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'newpassword'; Query OK, 0 rows affected (0.00 sec)
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-3 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2026 源码网商城 (www.yuanmawang.com) 版权所有