VPS侦探论坛

 找回密码
 注册
查看: 713|回复: 1

没有mysql.sock文件 MY配置正常 数据库启动页是正常

[复制链接]
发表于 2023-12-27 10:29:49 | 显示全部楼层 |阅读模式



显示都按照成功了,

No package iptables-services available.
Error: Nothing to do
iptables: Saving firewall rules to /etc/sysconfig/iptables:[  OK  ]
Add iptables service at system startup...
Add Startup and Starting LAMP...
Add httpd service at system startup...
start apache...  done
Add mysql service at system startup...
Starting MySQL.231226 23:14:16 mysqld_safe --malloc-lib can not be read and will not be used
ERROR! The server quit without updating PID file (/usr/local/mysql/var/C20230823195747.local.pid).
Apache: OK
MySQL: OK
PHP: OK
Clean Web Server src directory...
+------------------------------------------------------------------------+
|          LNMP V2.0 for CentOS Linux Server, Written by Licess          |
+------------------------------------------------------------------------+
|           For more information please visit https://lnmp.org           |
+------------------------------------------------------------------------+
|    lnmp status manage: lnmp {start|stop|reload|restart|kill|status}    |
+------------------------------------------------------------------------+
|  phpMyAdmin: http://IP/phpmyadmin/                                     |
|  phpinfo: http://IP/phpinfo.php                                        |
|  Prober:  http://IP/p.php                                              |
+------------------------------------------------------------------------+
|  Add VirtualHost: lnmp vhost add                                       |
+------------------------------------------------------------------------+





但是数据库 是无法连接上去,服务器都找了  木有mysql.sock文件    my 文件也是 /tmp/mysql.sock 这个配置  

+-------------------------------------------+
|    Manager for LNMP, Written by Licess    |
+-------------------------------------------+
|              https://lnmp.org             |
+-------------------------------------------+
Apache is running.
ERROR! MySQL is not running, but lock file (/var/lock/subsys/mysql) exists
State      Recv-Q Send-Q        Local Addressort          Peer Addressort
LISTEN     0      128                      :::9765                    :::*     
LISTEN     0      128                       *:9765                     *:*     
LISTEN     0      128                      :::80                      :::*     
Install lnmp takes 57 minutes.
Install lnmp V2.0 completed! enjoy it.
[root@C20230823195747 lnmp2.0]# mysql -u root -p
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
[root@C20230823195747 lnmp2.0]#


美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2023-12-28 10:25:48 | 显示全部楼层


需要提供安装日志或者mysql日志
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-22 00:42 , Processed in 0.025285 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表