当前位置:网站首页>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

边栏推荐
- Vite configuring path aliases in the project
- Power amplifier and matching network learning
- 【Utils】JsonUtil
- Long closed period private placement products reappearance industry insiders have different views
- 【飞控开发基础教程7】疯壳·开源编队无人机-SPI(气压计数据获取)
- Redis sentinel mechanism
- Poj3275 ranking the cows
- Collaborative office tools: Online whiteboard is in its infancy, and online design has become a red sea
- ES6 what amazing writing methods have you used
- Slam thesis collection
猜你喜欢

Clickhouse架构与设计

Implementation of StrCmp, strstr, memcpy, memmove

MVC model: calendar system

一文读懂如何部署具有外部数据库的高可用 K3s

第六章 支持向量机

MVC模型:日历系统

DXF reading and writing: align the calculation of the position of the dimension text in the middle and above

Algorithm --- different paths (kotlin)

Diablo 4 ps4/ps5 beta has been added to the Playstation database

Qt5开发从入门到精通——第一篇概述
随机推荐
了解BFC特性,轻松实现自适应布局
Understand the principle behind the virtual list, and easily realize the virtual list
Foundation of deep learning ---- GNN spectral domain and airspace (continuous improvement, update and accumulation)
Understanding of stack and practical application scenarios
MVC model: calendar system
TS literacy method - Basic chapter
每日一题——奖学金
【飞控开发基础教程7】疯壳·开源编队无人机-SPI(气压计数据获取)
QT自制软键盘 最完美、最简单、跟自带虚拟键盘一样
Do you really know esmodule
用友BIP CRM新品发布,赋能大中型企业营销增长
Security assurance is based on software life cycle - networkpolicy application
牛客多校-Link with Level Edito I-(线性dp)
彻底掌握二分查找
regular expression
Solve the problem that uniapp wechat applet canvas cannot introduce fonts
30 day question brushing plan (III)
Security assurance is based on software life cycle -istio authentication mechanism
Diablo 4 ps4/ps5 beta has been added to the Playstation database
Entering the world of audio and video -- flv video packaging format