当前位置:网站首页>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
边栏推荐
- Simple use of viewbinding
- Database computer experiment 4 (data integrity and stored procedure)
- 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
- Coolweather is revised and connected to the wind weather interface to realize the broken line diagram of temperature
- Eight bit binary multiplier VHDL
- 特征选择feature_selection--SelectKBest
- Sentinel service fusing practice (sentinel integration ribbon + openfeign + fallback)
- Recyclerview control list item layout match_ Fundamental principle of parent attribute invalidation
- ctfshow-web361(SSTI)
- C language simulates entering and leaving the stack, first in first out, first in first out, shared memory
猜你喜欢
Summary of actual business optimization scheme - main directory - continuous update
How to virtualize the video frame and background is realized in a few simple steps
Druid SQL和Security在美团点评的实践
On iptables
Introduction to ROS learning notes (II)
【科普】CRC校验(一)什么是CRC校验?
ESP32 LVGL8. 1 - arc (arc 19)
根据快递单号查询物流查询更新量
ctfshow-web362(SSTI)
Use Chenxi bookkeeping book to analyze the balance of revenue and expenditure of each account in a certain period of time
随机推荐
Use of content provider
WebView opens H5 video and displays gray background or black triangle button. Problem solved
Query the logistics update quantity according to the express order number
ESP32 LVGL8. 1 - checkbox (checkbox 23)
How can programmers quickly develop high-quality code?
Dynamically add and delete layouts
机器学习理论之(7):核函数 Kernels —— 一种帮助 SVM 实现非线性化决策边界的方式
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
深入理解 Golang 中的 new 和 make 是什么, 差异在哪?
The corresponding permissions required to automatically open the app in the setting interface through accessibility service
Treatment of incomplete display of listview height
ESP32 LVGL8. 1 - arc (arc 19)
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
C language simulates entering and leaving the stack, first in first out, first in first out, shared memory
Keil RVMDK compiled data type
Feature selection feature_ selection--SelectKBest
Use stm32cube MX / stm32cube ide to generate FatFs code and operate SPI flash
ctfshow-web361(SSTI)
Machine learning theory (8): model integration ensemble learning
SQL中函数 decode()与 replace()的用法