当前位置:网站首页>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
边栏推荐
- ESP32 LVGL8. 1 - anim animation (anim 16)
- ESP32 LVGL8. 1 - bar progress bar (bar 21)
- STM32: LCD显示
- Nacos as service registry
- 微搭低代码零基础入门课(第三课)
- Eight bit binary multiplier VHDL
- Esp32 (UART event) - serial port event learning (1)
- RPM包管理
- K210 serial communication
- Database computer experiment 4 (data integrity and stored procedure)
猜你喜欢
With the use of qchart, the final UI interface can be realized. The control of qweight can be added and promoted to a user-defined class. Only the class needs to be promoted to realize the coordinate
ESP32 LVGL8. 1 - checkbox (checkbox 23)
STM32: LCD显示
os_ authent_ Prefix
Halo open source project learning (VII): caching mechanism
使用晨曦记账本,分析某个时间段每个账户收支结余
WebView opens H5 video and displays gray background or black triangle button. Problem solved
Esp32 (UART event) - serial port event learning (1)
Esp32 (UART 485 communication) - 485 communication of serial port (3)
ESP32 LVGL8. 1 - arc (arc 19)
随机推荐
SQL中函数 decode()与 replace()的用法
教你用简单几个步骤快速重命名文件夹名
Esp32 (UART ecoh) - serial port echo worm learning (2)
Eight bit binary multiplier VHDL
Advanced transfer learning
【历史上的今天】4 月 23 日:YouTube 上传第一个视频;网易云音乐正式上线;数字音频播放器的发明者出生
CISSP certified daily knowledge points (April 18, 2022)
ctfshow-web361(SSTI)
RPM package management
特征选择feature_selection--SelectKBest
Chondroitin sulfate in vitreous
Get a list of recent apps
Loop path
CISSP certified daily knowledge points (April 15, 2022)
Ucosiii transplantation and use, reference punctual atom
从技术体系到商业洞察,中小研发团队架构实践之收尾篇
Daily CISSP certification common mistakes (April 12, 2022)
WebView saves the last browsing location
Golang 语言实现TCP UDP通信
Introduction to QT programming