Re: [PHP-DEV] Re: PHP 4.0 Bug #7856 Updated: PHP can't conect to mysql server From: Derick Rethans (d.rethans <email protected>)
Date: 11/21/00

Hoi,

set the permissions (and the permissions of all subdirs) to
/var/lib/mysql/mysql.sock to 777 and see if it works...

Derick

On Tue, 21 Nov 2000, Javier De los Cobos wrote:

> Thanks for writting,
>
> >1. Does simple mysql_connect("localhost", "user", "password") work?
> No, it doesn't work.
>
> >2. Are you sure you have mysqld up and running?
> Yes, I am
>
> >3. Can you connect to mysql using the mysql shell utility from command
> >line?
>
> No, I can't.
> I can connect only when log on as root.
> When I log on with my user I can't connect and get the same error.
>
>
> Could you please give any idea to resolve it?
>
> Thanks,
> Javier.
>
> >
> >--Jani
> >
> >Previous Comments:
> >---------------------------------------------------------------------------
> >
> >[2000-11-16 21:17:56] javierdeco <email protected>
> >I got this message trying to connect to mysql database from my php page.
> >-----------------------------------
> >Warning: MySQL Connection Failed: Can't connect to local MySQL server
> >through socket '/var/lib/mysql/mysql.sock:' (111) in
> >/var/www/html/table.php on line 17
> >--------------------------------
> >The line 17 is:
> >
> >mysql_connect('localhost:3306:/var/lib/mysql/mysql.sock:','root','decomysql');
> >
> >---------------------------------------------------------------------------
> >
> >
> >Full Bug description available at: http://bugs.php.net/?id=7856
> >
>
> _____________________________________________________________________________________
> Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
> For additional commands, e-mail: php-dev-help <email protected>
> To contact the list administrators, e-mail: php-list-admin <email protected>
>

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>