当前位置:网站首页>MySQL n'a pas pu trouver MySQL. Solution temporaire pour le fichier Sock
MySQL n'a pas pu trouver MySQL. Solution temporaire pour le fichier Sock
2022-06-30 18:25:00 【Selondier】
Erreur de connexion à la base de données:Can 't connect to local MySQL server through socket '/tmp/mysql.sock '(2) ";
Raisons:1)mysqlLe service n'a pas démarré;2)sockErreur de réglage du chemin du fichier ;3)sockProblème de permissions dans le répertoire où se trouve le fichier;4)Ce fichier a été perdu directement
1)Vérifier si le Service a démarré
2)Inmy.cnfVoir dans le fichiersocketChemin spécifié par le paramètre,Voir si le chemin a accès
3)Allez sur ce chemin pour voir s'il existemysql.sockDocumentation,SisockLe fichier n'existe pas,Essayez d'abord d'utiliserfindLa commande recherche le fichier,Si vous ne trouvez pas,RedémarrablemysqlServices,Génère automatiquement un.Puis copiez le fichier àsoctekLe chemin spécifié par le paramètre descend.Ou créer un lien souple,Comme ce fichier dans/var/lib/mysql.sock,socketLe chemin spécifié par le paramètre est/tmp/mysql.sock.C'est comme ça qu'on peut créer:ln -s /var/lib/mysql.sock /tmp/mysql.sock,Après la création,Essayez de vous connecter à nouveau
4)Si l'erreur persiste,Disponible enTCP/IPPour se connecter
mysql -u root -h Du serveur de base de donnéesIP -p
Ou mysql -u root -h 127.0.0.1 -p
边栏推荐
- Conception d'un centre commercial en ligne basé sur SSH
- 分布式机器学习:模型平均MA与弹性平均EASGD(PySpark)
- [machine learning] K-means clustering analysis
- Do fresh students get a job or choose a job after graduation?
- Thinking on large file processing (upload, download)
- 基于SSH的通讯网络电子计费系统
- LRN local response normalization
- Oneortwo bugs in "software testing" are small things, but security vulnerabilities are big things. We must pay attention to them
- If you want to learn software testing, you must see series, 2022 software testing engineer's career development
- 现在玩期货需要注意什么,在哪里开户比较安全,我第一次接触
猜你喜欢

基于SSH的网上商城设计

News management system based on SSM

Optimize with netcorebeauty Net core independent deployment directory structure

Alexnet of CNN classic network (Theory)

Redis (IX) - enterprise level solution (II)

Vulnerability recurrence ----- 38. Thinkphp5 5.0.23 Remote Code Execution Vulnerability

Research on the principle of Tencent persistence framework mmkv

What did Tongji and Ali study in the CVPR 2022 best student thesis award? This is an interpretation of yizuo

港科大&MSRA新研究:关于图像到图像转换,Finetuning is all you need

剑指 Offer 16. 数值的整数次方
随机推荐
这里数据过滤支持啥样的sql语句
What does software testing need to learn? Test learning outline sorting
Oneortwo bugs in "software testing" are small things, but security vulnerabilities are big things. We must pay attention to them
基于eNSP的校园网设计的仿真模拟
Deep understanding of JVM (III) - memory structure (III)
力扣解法汇总1175-质数排列
Vs Code treeview TreeView
现在玩期货需要注意什么,在哪里开户比较安全,我第一次接触
分布式机器学习:模型平均MA与弹性平均EASGD(PySpark)
Vulnerability recurrence ----- 38. Thinkphp5 5.0.23 Remote Code Execution Vulnerability
Redis (VI) - master-slave replication
.NET ORM框架HiSql实战-第一章-集成HiSql
后渗透之文件系统+上传下载文件
分布式场景下,你知道有几种生成唯一ID的方式嘛?
The new Post-00 Software Test Engineer in 2022 is a champion
uni-app进阶之内嵌应用【day14】
Vscode status bar statusbar
MySQL advanced - index optimization (super detailed)
Ardunio esp32 obtains real-time temperature and humidity in mqtt protocol (DH11)
Openlayers roller shutter map