安装调试Mysql数据库的步骤详解【实例】

 

[root@agt20 ~]# ls mysql-*mysql-5.7.17.tarmysql-community-client-5.7.17-1.el7.x86_64.rpmmysql-community-common-5.7.17-1.el7.x86_64.rpmmysql-community-devel-5.7.17-1.el7.x86_64.rpmmysql-community-embedded-5.7.17-1.el7.x86_64.rpmmysql-community-embedded-compat-5.7.17-1.el7.x86_64.rpmmysql-community-embedded-devel-5.7.17-1.el7.x86_64.rpmmysql-community-libs-5.7.17-1.el7.x86_64.rpmmysql-community-libs-compat-5.7.17-1.el7.x86_64.rpmmysql-community-minimal-debuginfo-5.7.17-1.el7.x86_64.rpmmysql-community-server-5.7.17-1.el7.x86_64.rpmmysql-community-test-5.7.17-1.el7.x86_64.rpm[root@agt20 ~]# yum -y install mysql-*.rpm[root@agt20 ~]# systemctl restart mysqld[root@agt20 ~]# systemctl enable mysqld[root@agt20 ~]# systemctl status mysqld.service \u25cf mysqld.service - MySQL ServerLoaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled)Active: active (running) since \u4e8c 2019-10-15 11:29:11 CST; 1min 15s agoDocs: man:mysqld(8)http://dev.mysql.com/doc/refman/en/using-systemd.htmlMain PID: 31584 (mysqld)CGroup: /system.slice/mysqld.service\u2514\u250031584 /usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid...10\u6708 15 11:28:42 agt20.tedu.cn systemd[1]: Starting MySQL Server...10\u6708 15 11:29:11 agt20.tedu.cn systemd[1]: Started MySQL Server.[root@agt20 ~]#[root@agt20 ~]# grep -i 'password' /var/log/mysqld.log 2019-10-15T03:28:55.200931Z 1 [Note] A temporary password is generated for root@localhost: r3qhDysMrM)[root@agt20 ~]# mysql -uroot -p'r3qhDysMrM)'mysql: [Warning] Using a password on the command line interface can be insecure.Welcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 4Server version: 5.7.17Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.Oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. Other names may be trademarks of their respectiveowners.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql>mysql> alter user root@localhost identified by 'Pwd@123...';Query OK, 0 rows affected (0.00 sec)mysql> set global validate_password_policy=0;Query OK, 0 rows affected (0.01 sec)mysql> set global validate_password_length=6;Query OK, 0 rows affected (0.00 sec)mysql> alter user root@localhost identified by 'pwd@123';Query OK, 0 rows affected (0.00 sec)[root@agt20 ~]# mysql -uroot -ppwd@123mysql: [Warning] Using a password on the command line interface can be insecure.Welcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 5Server version: 5.7.17 MySQL Community Server (GPL)Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.Oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. Other names may be trademarks of their respectiveowners.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql>至此Mysql数据库安装调试完成!!!! 

随着客户业务规模的不断扩大和各种应用的不断增加,强大的海外专线网络、多云速连服务和丰富的海外线路实施经验为客户未来的网络架构规划提供了有力支持。
总结 
以上所述是小编给大家介绍的CentOS7安装调试Mysql数据库的步骤详解,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的,在此也非常感谢大家对Vecloud网站的支持!

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值