首页 > 代码库 > Centos 7 mysql 安装记
Centos 7 mysql 安装记
自从某次在美团云把1G 1核的 centos 7 装到死机,我就断了源码编译安装mysql的心思。
本次实践历程如下
- 安装命令
wget 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 安装记
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。