当前位置:网站首页>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
边栏推荐
- uni-app进阶之自定义【day13】
- Redis (I) - data type
- Design of online shopping mall based on SSH
- Advanced customization of uni app [day13]
- Vs Code treeview TreeView
- What does software testing need to learn? Test learning outline sorting
- Type ~ storage ~ variable in C #
- Only black-and-white box test is required for test opening post? No, but also learn performance test
- ASP. Net password encryption and password login
- 国内离线安装 Chrome 扩展程序的方法总结
猜你喜欢
Do you write API documents or code first?
autocad中文语言锁定只读警报怎么解决?
漏洞复现----37、Apache Unomi 远程代码执行漏洞 (CVE-2020-13942)
Shortcut keys for the rainbow brackets plug-in
分布式场景下,你知道有几种生成唯一ID的方式嘛?
Redis (V) - advanced data types
先写API文档还是先写代码?
助力极致体验,火山引擎边缘计算最佳实践
MySQL advanced - index optimization (super detailed)
ASP. Net generate verification code
随机推荐
Inventory in the first half of 2022: summary of major updates and technical points of 20+ mainstream databases
分布式机器学习:模型平均MA与弹性平均EASGD(PySpark)
MySQL找不到mysql.sock文件的临时解
The new Post-00 Software Test Engineer in 2022 is a champion
Shortcut keys for the rainbow brackets plug-in
What should I pay attention to when playing futures? Where is safe to open an account? It's my first contact
后渗透之文件系统+上传下载文件
Dropout: immediate deactivation
Conception d'un centre commercial en ligne basé sur SSH
Apache 解析漏洞(CVE-2017-15715)_漏洞复现
Small Tools(3) 集成Knife4j3.0.3接口文档
Talk about the SQL server version of DTM sub transaction barrier function
Small tools (3) integration knife4j3.0.3 interface document
MySQL advanced - index optimization (super detailed)
What did Tongji and Ali study in the CVPR 2022 best student thesis award? This is an interpretation of yizuo
这里数据过滤支持啥样的sql语句
LeetCode之合并二叉树
【义修换届大礼包】
hdfs上的数据导入到clickhouse用什么方式最快呢?spark通过jdbc导入,还是hdfs
NFT: 开启加密艺术时代的无限可能