当前位置:网站首页>Linux Installation mysql5.7 (centos7.6) tutorial
Linux Installation mysql5.7 (centos7.6) tutorial
2022-06-28 22:23:00 【Liangmeng】
1. New folder /opt/mysql, and cd go in
cd /opt/
mkdir mysql
cd mysql
2. obtain Mysql Installation package :
Download ahead of time , Put directly mysql In the folder
Installation package download address :
https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.26-1.el7.x86_64.rpm-bundle.tar
3. Unzip the installation package
tar -xvf mysql-5.7.26-1.el7.x86_64.rpm-bundle.tar
PS:centos7.6 Own class mysql The database is mariadb, Will follow mysql Conflict , Delete first. .
4. function tar -xvf mysql-5.7.26-1.el7.x86_64.rpm-bundle.tar
5. function rpm -qa|grep mari, Inquire about mariadb Related installation package
6. function rpm -e --nodeps mariadb-libs, uninstall
7. Then start the real installation mysql, Run the following in sequence
rpm -ivh mysql-community-common-5.7.26-1.el7.x86_64.rpm
rpm -ivh mysql-community-libs-5.7.26-1.el7.x86_64.rpm
rpm -ivh mysql-community-client-5.7.26-1.el7.x86_64.rpm
rpm -ivh mysql-community-server-5.7.26-1.el7.x86_64.rpm
8. function systemctl start mysqld.service, start-up mysql
9. Then set up root User password
Mysql Automatic feed root Users set random passwords , function grep "password" /var/log/mysqld.log You can see the current password

10. function mysql -u root -p, use root The user login , When prompted for a password, you can use the above , You can successfully log in to mysql Command line
11. Set up root password , For personal development environment , If you want to set a simpler password ( Complex password should be set for production environment server ), Can run
set global validate_password_policy=0; (0 Delegate can set weak password )
(validate_password_policy The default value is 1)

12. set password for 'root'@'localhost' =password(' Enter the password you want to set here ');
13. function flush privileges Make password settings effective
边栏推荐
猜你喜欢

00 后云原生工程师:用 Zadig 为思创科技(广州公交)研发开源节流

场景化接口开发利器,金蝶云苍穹新版OpenAPI引擎来了!

Move the mouse out of the selected area style cancel

ansible生产环境使用场景(七):批量部署elk客户端

How to make beautiful pictures

基于graph-linked embedding的多组学单细胞数据整合与调控推理

What does project management really manage?

C#/VB. Net to convert PDF to excel

How to advance data analysis from 1 to 10?

电商秒杀系统架构设计
随机推荐
ROS 2 Humble Hawksbill 之 f1tenth gym
爱数SMART 2022峰会开启,分享数据战略与建设数据驱动型组织方法论
犹豫的根音
【selenium自动化过程中的api抓包】browsermobproxy的安装和配置
宜明昂科在港交所递表:2021年亏损翻倍,过往融资额存在夸大情形
电商秒杀系统架构设计
Webrtc audio and video development - experience
在亿学学堂开通证券账户是安全可靠的吗?
Career consultation | in the data analysis interview, it is only reliable to introduce yourself in this way
职业问诊 | 面试中被问到意向薪资时,该怎么回答?
Zadig + SonarQube,为开发过程安全保驾
Akamai acquires linode
What is the prospect of VR panoramic production?
Hashicorp/raft introduction and source code analysis (III): introduction to cluster node recovery
Analysis of CSRF Cross Site Request Forgery vulnerability
硬件开发笔记(七): 硬件开发基本流程,制作一个USB转RS232的模块(六):创建0603封装并关联原理图元器件
穿越过后,她说多元宇宙真的存在
QtCreator5.15.0源码编译全过程记录
[dynamic programming] p1018 linear DP: maximum product
Detailed explanation of Zadig's self-test and joint debugging sub environment for developers