当前位置:Gxlcms > 数据库问题 > Centos 7 mysql 安装记

Centos 7 mysql 安装记

时间:2021-07-01 10:21:17 帮助过:27人阅读

http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm rpm -ivh mysql-community-release-el7-5.noarch.rpm yum install mysql-community-server
  • 配置mysql
service mysqld restart

mysql -u root
mysql> set password for root@localhost =password(vm_52.102);    

 

[root@localhost liuhui]# service mysqld restart
Redirecting to /bin/systemctl restart  mysqld.service
[root@localhost liuhui]# mysql -u root
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.6.34 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 its
affiliates. Other names may be trademarks of their respective
owners.

Type help; or \h for help. Type \c to clear the current input statement.

mysql> set password for root@localhost =password(‘password);
Query OK, 0 rows affected (0.00 sec)

 

Centos 7 mysql 安装记

标签:bsp   unit   its   美团   monit   rac   centos   wget   com   

人气教程排行