当前位置:网站首页>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 - event (event 17)
- Tangle
- Scrollto and scrollby
- MVVM model
- Solutions such as unknown or garbled code or certificate problem prompt in Charles's mobile phone packet capture, actual measurement.
- Seata handles distributed transactions
- MySQL statement
- ESP32 LVGL8. 1 - anim animation (anim 16)
- Sentinel规则持久化进Nacos
- Screenshot using projectmediamanager
猜你喜欢
MVVM模型
Practice of Druid SQL and security in meituan review
实战业务优化方案总结---主目录---持续更新
CANopen STM32 transplantation
Machine learning theory (7): kernel function kernels -- a way to help SVM realize nonlinear decision boundary
Simple use of navigation in jetpack
解决:cnpm : 无法加载文件 ...\cnpm.ps1,因为在此系统上禁止运行脚本
教你用简单几个步骤快速重命名文件夹名
机器学习理论之(7):核函数 Kernels —— 一种帮助 SVM 实现非线性化决策边界的方式
Esp32 (UART receiving and sending) - receiving and sending communication of serial port (4)
随机推荐
Coolweather is revised and connected to the wind weather interface to realize the broken line diagram of temperature
根据快递单号查询物流查询更新量
WebView opens H5 video and displays gray background or black triangle button. Problem solved
Dynamically add and delete layouts
Machine learning theory (7): kernel function kernels -- a way to help SVM realize nonlinear decision boundary
ESP32 LVGL8. 1 - event (event 17)
Database computer experiment 4 (data integrity and stored procedure)
微搭低代码零基础入门课(第三课)
解决:cnpm : 无法加载文件 ...\cnpm.ps1,因为在此系统上禁止运行脚本
Daily CISSP certification common mistakes (April 14, 2022)
机器学习理论之(8):模型集成 Ensemble Learning
昇腾 AI 开发者创享日全国巡回首站在西安成功举行
Can filter
Daily CISSP certification common mistakes (April 12, 2022)
RPM package management
How can programmers quickly develop high-quality code?
Nacos作为服务配置中心实战
ESP32 LVGL8. 1 - label (style 14)
Nacos作为服务注册中心
Introduction to QT programming