当前位置:网站首页>MySQL Téléchargement et installation de la version Linux
MySQL Téléchargement et installation de la version Linux
2022-04-23 18:48:00 【Lunettes】
Catalogue des articles
1、mysqlTéléchargement de
MySQL Adresse de téléchargement du site officiel de: Site officiel
2、mysqlInstallation
Télécharger sur: /usr/local/mysql
VoircentosAutoportantemysql, Supprimer si présent
rpm -qa | grep mysql # Voir
rpm -ev mysql-libs-* --nodeps # Supprimer
InstallationrpmSac
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: Indique que les dépendances ne sont pas vérifiées lors de l'installation
Démarragemysql
# VoirmysqlÉtat de
service mysqld status
service mysqld start
Initialisation des mots de passe aléatoires
cat /var/log/mysqld.log | more
Voir les mots de passe aléatoires:
grep pass /var/log/mysqld.log --color
Connectez - vous et modifiez votre mot de passe:
[root@web ~]#mysql -uroot -p
mysql> set password='Pwd@123456';
mysql> grant all privileges on *.* to 'root'@'%' identified by 'Pwd@123456';
Réglage de l'auto - démarrage
chkconfig --add mysql
# Voir si l'ajout a réussi
chkconfig --list
Si l'ajout précédent n'a pas réussi , Ajouter manuellement au profil de démarrage
vim /etc/rc.d/rc.local
# Ajouter
service mysqld start
Politique du port pare - feu
# Ajouter3306Port
/sbin/iptables -I INPUT -p tcp --dport 3306 -j ACCEPT
# Enregistrer
/etc/init.d/iptables save
# Redémarrer
service iptables restart
# Voir l'état
/etc/init.d/iptables status
版权声明
本文为[Lunettes]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231848086201.html
边栏推荐
- Go language GUI framework Fyne Chinese garbled or not displayed
- How can programmers quickly develop high-quality code?
- Introduction to ROS learning notes (I)
- 机器学习理论基础篇--关于机器学习的一些术语
- listener. log
- Methods of nested recycleview to solve sliding conflict and incomplete item display
- 从技术体系到商业洞察,中小研发团队架构实践之收尾篇
- How to virtualize the video frame and background is realized in a few simple steps
- Deeply understand what new and make in golang are and what are the differences?
- 视频边框背景如何虚化,简单操作几步实现
猜你喜欢
One of the reasons why the WebView web page cannot be opened (and some WebView problem records encountered by myself)
Machine learning theory (7): kernel function kernels -- a way to help SVM realize nonlinear decision boundary
Simple use of navigation in jetpack
视频边框背景如何虚化,简单操作几步实现
Setting up keil environment of GD single chip microcomputer
iptables -L执行缓慢
实战业务优化方案总结---主目录---持续更新
listener.log
Excel intercept text
ESP32 LVGL8. 1 - bar progress bar (bar 21)
随机推荐
The corresponding permissions required to automatically open the app in the setting interface through accessibility service
Simple use of navigation in jetpack
Use of kotlin collaboration in the project
配置iptables
程序员如何快速开发高质量的代码?
STM32: LCD display
纠结
The first leg of the national tour of shengteng AI developer creation and enjoyment day was successfully held in Xi'an
Use stm32cube MX / stm32cube ide to generate FatFs code and operate SPI flash
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
Sentinel service fusing practice (sentinel integration ribbon + openfeign + fallback)
Excel intercept text
实战业务优化方案总结---主目录---持续更新
ESP32 LVGL8. 1 - roller rolling (roller 24)
使用晨曦记账本,分析某个时间段每个账户收支结余
使用 bitnami/postgresql-repmgr 镜像快速设置 PostgreSQL HA
微搭低代码零基础入门课(第三课)
Methods of nested recycleview to solve sliding conflict and incomplete item display
os_authent_prefix
【数学建模】—— 层次分析法(AHP)