当前位置:网站首页>Centos+mysql message: can't connect to local MySQL server through socket '/var/lib/mysql/mysql socket
Centos+mysql message: can't connect to local MySQL server through socket '/var/lib/mysql/mysql socket
2022-06-09 22:50:00 【Fight hard】
1. see mysql The configuration file
locate my.cnf2. see mysql.socket file location

3. And the destination address /var/lib/mysql/mysql.socket atypism , Soft link is required , Enter the first /var/lib Under the table of contents
cd /var/lib4. establish mysql file
sudo mkdir mysql5. Create soft link sudo ln -s mysql.sock Actual location /var/lib/mysql/mysql.socket
sudo ln -s /data_p/mysql_data/mysql.sock /var/lib/mysql/mysql.sock边栏推荐
- 數據庫優化方面的經驗
- GUI 用户登录
- Explication de la boucle de force (1)
- 在 4GB 物理內存的機器上,申請 8G 內存會怎麼樣?
- 元宇宙或将会取代互联网成为下一个十年,甚至二十年人们主流的生活方式
- 【刷题篇】最长递增子序列
- 「ClickHouse系列」ClickHouse的优化之Block+LSM
- 【Jmeter】Jmeter从入门到精通
- Maximum value and subscript of acquisition matrix of C language test question 168
- This book has won the 2022 Beijing college entrance examination composition
猜你喜欢
随机推荐
GameFi新的启程,AQUANEE将于6.9日登陆Gate以及BitMart
基于JSP实现网上招聘系统
Mina中的区块证明
M-Arch(雅特力M4)【AT-START-F425测评】No.06 驱动段码LCD
Web3中的 重复的 Web1历程
Que se passe - t - il si vous appliquez 8G sur une machine avec 4go de mémoire physique?
[Title brushing] longest increasing subsequence
关于mongodb的那些安装、配置、报错处理、CRUD操作等再总结
Sparksql source code series | the most complete logical plan optimization rules (spark2.3)
华泰证券开户安全吗
[question brushing] jumping game
C语言试题163之计算某一天是对应年的第几天,这一年一共多少天;计算两个日期之间相隔的天数。两个日期由键盘输入。
im即时通讯开发:移动端协议UDP还是TCP?
AI助力,释放法务势能——法大大iTerms合同智审系统正式发布
Is it safe for Huatai Securities to open an account
Web3 in the distant future? No, it has come!
Understand the execution principle of show create table
YUV format and RGB format
C语言试题162之圆周率π
C语言试题164之求定积分








