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

边栏推荐
猜你喜欢

安全保障基于软件全生命周期-NetworkPolicy应用

深度学习基础----GNN谱域和空域 (不断完善更新积累)

Solve the problem that uniapp wechat applet canvas cannot introduce fonts

MVC model: calendar system

IP black and white list

Clickhouse分布式集群搭建

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

MVC模型:日历系统

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

作为一个程序员,如何高效的管理时间?
随机推荐
QT自制软键盘 最完美、最简单、跟自带虚拟键盘一样
Security assurance is based on software life cycle - networkpolicy application
多级缓存方案
Uva1599 ideal path problem solution
83.(cesium之家)cesium示例如何运行
《机器学习》(周志华) 第6章 支持向量 学习心得 笔记
【Utils】CookieUtil
30 day question brushing training (I)
Thoroughly master binary search
安全保障基于软件全生命周期-Istio的授权机制
jenkins
Vite configuring path aliases in the project
Security assurance is based on software life cycle -istio authentication mechanism
【Utils】ServletUtil
30 day question brushing plan (III)
ES6 what amazing writing methods have you used
Collaborative office tools: Online whiteboard is in its infancy, and online design has become a red sea
RSA用私钥加密数据公钥解密数据(不是签名验证过程)
[util] redis tool class: change the value serializer of redis to genericjackson2jsonredisserializer, and the return value can be object or collection
Poj3259 wormhole solution