当前位置:网站首页>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
边栏推荐
- Nacos as service registry
- Resolution: cnpm: unable to load file \cnpm. PS1, because running scripts is prohibited on this system
- 配置iptables
- Daily CISSP certification common mistakes (April 19, 2022)
- Implementation of TCP UDP communication with golang language
- 使用晨曦记账本,分析某个时间段每个账户收支结余
- Tangle
- Database computer experiment 4 (data integrity and stored procedure)
- Golang 语言实现TCP UDP通信
- STM32: LCD display
猜你喜欢
实战业务优化方案总结---主目录---持续更新
Introduction to ROS learning notes (II)
Halo open source project learning (VII): caching mechanism
微搭低代码零基础入门课(第三课)
Simple use of navigation in jetpack
Practice of Druid SQL and security in meituan review
os_ authent_ Prefix
ESP32 LVGL8. 1 - calendar (calendar 25)
机器学习实战 -朴素贝叶斯
Download xshell 6 and xftp6 official websites
随机推荐
Introduction to ROS learning notes (I)
Daily network security certification test questions (April 12, 2022)
Use bitnami / PostgreSQL repmgr image to quickly set up PostgreSQL ha
PyGame tank battle
After opening the original normal project, the dependency package displays red and does not exist.
CISSP certified daily knowledge points (April 15, 2022)
Introduction to QT programming
ctfshow-web361(SSTI)
Summary of actual business optimization scheme - main directory - continuous update
Daily CISSP certification common mistakes (April 12, 2022)
Excel intercept text
iptables初探
[mathematical modeling] - analytic hierarchy process (AHP)
Nacos as service registry
After CANopen starts PDO timing transmission, the heartbeat frame time is wrong, PDO is delayed, and CANopen time axis is disordered
中金财富怎么样?在上边开户安全吗
Nacos集群搭建和mysql持久化配置
Résolution: cnpm: impossible de charger le fichier... Cnpm. PS1 parce que l'exécution de scripts est désactivée sur ce système
Esp32 (UART 485 communication) - 485 communication of serial port (3)
Sentinel服务熔断实战(sentinel整合ribbon+openFeign+fallback)