当前位置:网站首页>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
边栏推荐
- Solutions such as unknown or garbled code or certificate problem prompt in Charles's mobile phone packet capture, actual measurement.
- Click the input box to pop up the keyboard layout and move up
- Esp32 (UART receiving and sending) - receiving and sending communication of serial port (4)
- Excel intercept text
- ESP32 LVGL8. 1 - img picture (IMG 20)
- ctfshow-web362(SSTI)
- Can filter
- WebView saves the last browsing location
- [popular science] CRC verification (I) what is CRC verification?
- 解决:cnpm : 无法加载文件 ...\cnpm.ps1,因为在此系统上禁止运行脚本
猜你喜欢

Solutions such as unknown or garbled code or certificate problem prompt in Charles's mobile phone packet capture, actual measurement.

使用晨曦记账本,分析某个时间段每个账户收支结余

Use bitnami / PostgreSQL repmgr image to quickly set up PostgreSQL ha
![[mathematical modeling] - analytic hierarchy process (AHP)](/img/ff/2350c9604a03fff6a6a751aa3cfa3b.png)
[mathematical modeling] - analytic hierarchy process (AHP)

ctfshow-web361(SSTI)

WebView opens H5 video and displays gray background or black triangle button. Problem solved

ESP32 LVGL8. 1 - calendar (calendar 25)

Resolution: cnpm: unable to load file \cnpm. PS1, because running scripts is prohibited on this system

Excel intercept text

ESP32 LVGL8. 1 - input devices (input devices 18)
随机推荐
Sentinel服务熔断实战(sentinel整合ribbon+openFeign+fallback)
Solutions such as unknown or garbled code or certificate problem prompt in Charles's mobile phone packet capture, actual measurement.
Sentinel rule persistence into Nacos
Use Chenxi bookkeeping book to analyze the balance of revenue and expenditure of each account in a certain period of time
ESP32 LVGL8. 1 - calendar (calendar 25)
Feature selection feature_ selection--SelectKBest
The first leg of the national tour of shengteng AI developer creation and enjoyment day was successfully held in Xi'an
Can filter
机器学习实战 -朴素贝叶斯
CISSP certified daily knowledge points (April 14, 2022)
深入理解 Golang 中的 new 和 make 是什么, 差异在哪?
Esp32 (UART receiving and sending) - receiving and sending communication of serial port (4)
Daily CISSP certification common mistakes (April 15, 2022)
How to virtualize the video frame and background is realized in a few simple steps
How can programmers quickly develop high-quality code?
Seata处理分布式事务
Simple use of navigation in jetpack
【科普】CRC校验(一)什么是CRC校验?
ctfshow-web361(SSTI)
程序员如何快速开发高质量的代码?