MySQL,无法创建UNIX套接字(12) [英] MySQL, Can't create UNIX socket (12)

查看:123
本文介绍了MySQL,无法创建UNIX套接字(12)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

SQLSTATE[HY000] [2001] Can't create UNIX socket (12)

在我的本地计算机上,我的项目运行正常.将更改推送到服务器后,我会收到此错误消息.

On my local machine my project works fine. As soon as I pushed my changes to the server I get this error message.

mysql日志完全为空.

The mysql log is totally empty.

Mysql配置: my.cnf

但是,使用相同mysql服务器的另一个站点也可以正常工作.

However another site that uses the same mysql server works fine.

以下是更多信息:我的vServer运行ubuntu 10.04,并具有2 GB的RAM.

Here are some more information: My vServer is running ubuntu 10.04 and has 2 GB of RAM.

/root$ ps -le | grep mysqld
0 S     0  9502     1  0  85   0 -  1025 wait   ?        00:00:00 mysqld_safe
4 S   109  9539  9502  0  76   0 - 77209 stext  ?        00:01:02 mysqld
/root$ ps -le | grep mysqld
0 S     0  9502     1  0  85   0 -  1025 wait   ?        00:00:00 mysqld_safe
4 S   109  9539  9502  0  75   0 - 77209 stext  ?        00:01:03 mysqld

/root$ ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 20
file size               (blocks, -f) unlimited
pending signals                 (-i) 16382
max locked memory       (kbytes, -l) 64
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) unlimited
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

也许只是在看公羊?

推荐答案

这是

This is CR_SOCKET_CREATE_ERROR, an error generated by the client code.

12位可能是您客户的errno.您的系统上的错误12是什么?对我来说,使用mysql perror命令行实用程序,它是操作系统错误代码12:无法分配内存"

The 12 is probably your client's errno. What is error 12 on your system? For me, using the mysql perror command line utility, it's "OS error code 12: Cannot allocate memory"

这篇关于MySQL,无法创建UNIX套接字(12)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆