当前位置:网站首页>Install mysql5.7.36 in CentOS
Install mysql5.7.36 in CentOS
2022-07-28 14:13:00 【Andy86666】
stay centos Install in mysql5.7.36
stay centos Install in mysql5.7.36
( One )、mysql-5.7.36-1.el7.x86_64.rpm-bundle.tar Download resources
mysql-5.7.36-1.el7.x86_64.rpm-bundle.tar
( Two )、 Delete the built-in database
sudo rpm -e --nodeps mariadb-libs
( 3、 ... and )、 decompression mysql-5.7.36-1.el7.x86_64.rpm-bundle.tar
tar -xf mysql-5.7.36-1.el7.x86_64.rpm-bundle.tar

( Four )、 install mysql
Be careful : install mysql, Be sure to pay attention to the sequence
sudo rpm -ivh mysql-community-common-5.7.36-1.el7.x86_64.rpm
sudo rpm -ivh mysql-community-libs-5.7.36-1.el7.x86_64.rpm
sudo rpm -ivh mysql-community-libs-compat-5.7.36-1.el7.x86_64.rpm
sudo rpm -ivh mysql-community-client-5.7.36-1.el7.x86_64.rpm
sudo rpm -ivh mysql-community-server-5.7.36-1.el7.x86_64.rpm

( 5、 ... and )、MySQL initialization
sudo mysqld --initialize --user=mysql

( 6、 ... and )、 Check the initial password
stay /etc/my.cnf Check the log storage location
cat /etc/my.cnf

Look in the log file Initial password
cat /var/log/mysql.log

n:3Evf/(Sled
( 7、 ... and ) land MySQL
Start... First MySQL service
sudo systemctl start mysqld
Be careful : Just start it once , The next boot starts automatically
land MySQL
mysql -u root -p

Change Password
set password=password("root");

You can quit first and try to change the password successfully
( 8、 ... and ) take MySQL Set to any ip You can visit
Be careful : at present MySQL It can only be accessed locally
Related configuration files , stay mysql Medium mysql Library user In the table

stay user Field ,root User host yes localhost( Local )

terms of settlement :
update mysql.user set host="%" where user='root';
Enter the following command again , Take effect immediately
flush privileges;

You can test whether you can access it remotely MySQL
We will windows in Navicat Remote login

边栏推荐
- strcmp、strstr、memcpy、memmove的实现
- Foundation of deep learning ---- GNN spectral domain and airspace (continuous improvement, update and accumulation)
- Dojp1520 gate jumping problem solution
- [translation] how to choose a network gateway for your private cloud
- 【Utils】JsonUtil
- Docker deploys Mysql to realize remote connection [easy to understand]
- 牛客多校-Link with Level Edito I-(线性dp)
- 【Util】redis工具类:把redis的value序列化器修改为GenericJackson2JsonRedisSerializer,就支持返回值为对象或集合了
- 30 day question brushing training (I)
- 数据库优化 理解这些就够了
猜你喜欢

阿里、京东、抖音:把云推向产业心脏

Daily question - Scholarship

安全保障基于软件全生命周期-Istio的授权机制

Entering the world of audio and video -- flv video packaging format

基于NoneBot2的qq机器人配置记录

【LVGL事件(Events)】事件在不同组件上的应用(一)

Machine learning (Zhou Zhihua) Chapter 6 notes on Support Vector Learning

多级缓存方案

Clickhouse architecture and design

Solve the problem that uniapp wechat applet canvas cannot introduce fonts
随机推荐
strcmp、strstr、memcpy、memmove的实现
用友BIP CRM新品发布,赋能大中型企业营销增长
Intersectionobserver
LeetCode 105.从前序与中序遍历序列构造二叉树 && 106.从中序与后序遍历序列构造二叉树
数据库系统概论(第5版)补充习题——第一章 绪论
Three cases of thread blocking.
修订版 | 目标检测:速度和准确性比较(Faster R-CNN,R-FCN,SSD,FPN,RetinaNet和YOLOv3)...
How to effectively conduct the review meeting (Part 1)?
Several solutions to spanning
离散对数问题(DLP) && Diffie-Hellman问题(DHP)
Foundation of deep learning ---- GNN spectral domain and airspace (continuous improvement, update and accumulation)
记一次COOKIE的伪造登录
MySQL开发技巧——视图
Security assurance is based on software life cycle -istio authentication mechanism
Verification code brute force cracking test [easy to understand]
【Utils】JsonUtil
[try to hack] hfish honeypot deployment
Solve the problem that uniapp wechat applet canvas cannot introduce fonts
正则表达式
Istio四之故障注入和链路追踪