Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

php mysql

1 view
Skip to first unread message

jb

unread,
May 12, 2010, 4:32:10 PM5/12/10
to
Warning: mysqli::mysqli() [mysqli.mysqli]: (HY000/2002): Can't connect to
local MySQL server through socket '/tmp/mysql.sock' (2) in
/mnt/web5/50/22/51986022/htdocs/family/includes/classes/db.php on line 9
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

How can help me?

Wie kan mij helpen?

greetings Jan


J.O. Aho

unread,
May 12, 2010, 4:44:08 PM5/12/10
to
chrome://messenger/locale/messengercompose/composeMsgs.properties:

> Warning: mysqli::mysqli() [mysqli.mysqli]: (HY000/2002): Can't connect
> to local MySQL server through socket '/tmp/mysql.sock' (2) in
> /mnt/web5/50/22/51986022/htdocs/family/includes/classes/db.php on line 9
> Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

There can be two different problems here,

1. You haven't started the mysql server, this can usually be started with a
privileged user (root or in ubuntu using sudo to gain root access)

/etc/init.d/mysql start

2. You php has a misconfiguration in it's php.ini, change the value
mysql.default_socket to include the path to the mysql socket (you find it's
location in your my.cnf), if you have default values in my.cnf, then you can
leave mysql.default_socket empty.


--

//Aho

jb

unread,
May 15, 2010, 1:06:21 PM5/15/10
to
Thanks for the help.

It is working. It wash a misconfiguration in the config.php

Jan


"J.O. Aho" <us...@example.net> schreef in bericht
news:850i8p...@mid.individual.net...


> chrome://messenger/locale/messengercompose/composeMsgs.properties:
>> Warning: mysqli::mysqli() [mysqli.mysqli]: (HY000/2002): Can't connect
>> to local MySQL server through socket '/tmp/mysql.sock' (2) in
>> /mnt/web5/50/22/51986022/htdocs/family/includes/classes/db.php on line 9
>> Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
>
> There can be two different problems here,
>
> 1. You haven't started the mysql server, this can usually be started with
> a
> privileged user (root or in ubuntu using sudo to gain root access)
>
> /etc/init.d/mysql start
>
>
>

> 2. You php has a, change the value

0 new messages