当前位置:网站首页>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
边栏推荐
- 视频边框背景如何虚化,简单操作几步实现
- Keil RVMDK compiled data type
- ctfshow-web362(SSTI)
- Chondroitin sulfate in vitreous
- Practice of Druid SQL and security in meituan review
- Query the logistics update quantity according to the express order number
- Ctfshow - web362 (ssti)
- STM32: LCD display
- 七、DOM(下) - 章节课后练习题及答案
- ESP32 LVGL8. 1 - arc (arc 19)
猜你喜欢

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

Iptables - L executes slowly

Esp32 (UART receiving and sending) - receiving and sending communication of serial port (4)
![[mathematical modeling] - analytic hierarchy process (AHP)](/img/ff/2350c9604a03fff6a6a751aa3cfa3b.png)
[mathematical modeling] - analytic hierarchy process (AHP)

7、 DOM (Part 2) - chapter after class exercises and answers

解决:cnpm : 无法加载文件 ...\cnpm.ps1,因为在此系统上禁止运行脚本

七、DOM(下) - 章节课后练习题及答案

On iptables

微搭低代码零基础入门课(第三课)

Introduction to ROS learning notes (I)
随机推荐
After opening the original normal project, the dependency package displays red and does not exist.
视频边框背景如何虚化,简单操作几步实现
Sentinel service fusing practice (sentinel integration ribbon + openfeign + fallback)
【数学建模】—— 层次分析法(AHP)
ESP32 LVGL8. 1 - arc (arc 19)
Nacos作为服务注册中心
os_authent_prefix
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
Introduction to ROS learning notes (I)
Resolution: cnpm: unable to load file \cnpm. PS1, because running scripts is prohibited on this system
从技术体系到商业洞察,中小研发团队架构实践之收尾篇
Esp32 (UART receiving and sending) - receiving and sending communication of serial port (4)
Screenshot using projectmediamanager
One of the reasons why the WebView web page cannot be opened (and some WebView problem records encountered by myself)
回路-通路
实战业务优化方案总结---主目录---持续更新
MVVM模型
Loop path
CISSP certified daily knowledge points (April 14, 2022)
配置iptables