当前位置:网站首页>mysql_ Download and installation of Linux version
mysql_ Download and installation of Linux version
2022-04-23 18:48:00 【Glasses &】
List of articles
1、mysql The download
MySQL Download address of official website of : Official website




2、mysql Installation
Upload to : /usr/local/mysql
see centos Self contained mysql, Remove if present
rpm -qa | grep mysql # see
rpm -ev mysql-libs-* --nodeps # Delete
install rpm package
rpm -ivh mysql-community-client-5.7.25-1.el6.x86_64.rpm --force --nodeps
rpm -ivh mysql-community-common-5.7.25-1.el6.x86_64.rpm --force --nodeps
rpm -ivh mysql-community-libs-5.7.25-1.el6.x86_64.rpm --force --nodeps
rpm -ivh mysql-community-server-5.7.25-1.el6.x86_64.rpm --force --nodeps
–force --nodeps: Does not check dependencies during installation
start-up mysql
# see mysql The state of
service mysqld status
service mysqld start
Initialize random password
cat /var/log/mysqld.log | more
View random password :
grep pass /var/log/mysqld.log --color
Log in and change the password :
[root@web ~]#mysql -uroot -p
mysql> set password='Pwd@123456';
mysql> grant all privileges on *.* to 'root'@'%' identified by 'Pwd@123456';
Set power on self start
chkconfig --add mysql
# See if it is added successfully
chkconfig --list
If the previous step is not successful , Then add it to the startup configuration file manually
vim /etc/rc.d/rc.local
# add to
service mysqld start
Firewall port policy
# add to 3306 port
/sbin/iptables -I INPUT -p tcp --dport 3306 -j ACCEPT
# preservation
/etc/init.d/iptables save
# restart
service iptables restart
# Check the status
/etc/init.d/iptables status
版权声明
本文为[Glasses &]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231848086201.html
边栏推荐
猜你喜欢

listener. log

ESP32 LVGL8. 1 - roller rolling (roller 24)

机器学习实战 -朴素贝叶斯

Halo open source project learning (VII): caching mechanism

Machine learning practice - naive Bayes

Druid SQL和Security在美团点评的实践

ctfshow-web362(SSTI)

iptables -L执行缓慢

ESP32 LVGL8. 1. Detailed migration tutorial of m5stack + lvgl + IDF (27)

微搭低代码零基础入门课(第三课)
随机推荐
iptables初探
Practice of Druid SQL and security in meituan review
After CANopen starts PDO timing transmission, the heartbeat frame time is wrong, PDO is delayed, and CANopen time axis is disordered
K210 serial communication
Chondroitin sulfate in vitreous
Implementation of TCP UDP communication with golang language
Promote QT default control to custom control
Daily CISSP certification common mistakes (April 13, 2022)
C language simulates entering and leaving the stack, first in first out, first in first out, shared memory
程序员如何快速开发高质量的代码?
Daily network security certification test questions (April 13, 2022)
Sentinel规则持久化进Nacos
Dynamically add and delete layouts
listener. log
[popular science] CRC verification (I) what is CRC verification?
: app: transformclasseswithrobustfordevrease meituan hot repair compilation error record
22 year flying Book manpower Kit
Go 语言 GUI 框架 fyne 中文乱码或者不显示的问题
Sentinel rule persistence into Nacos
Introduction to QT programming