Re: Can't conect with mysql_connect(), please help.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You must start your mysql server :

do it:

/etc/init.d/mysqld start

and when you read the line

mysql start........ [OK]

your problem will be fix ;)

Regards

Nilson

Gabriel Peugnet dijo:
>       phpinfo() says:
>
>       MySQL Support         enabled
>
>       MYSQL_SOCKET     /var/lib/mysql/mysql.sock
>
> but in fact the file /var/lib/mysql/mysql.sock doesn't exists.
>
> So I understand that the first step is to check the configuration of
> MySQL,
> is it?
>
>
> "Dan Brunner" <daniel.brunner@duni.com> escribió en el mensaje
> 97065B0E-FE8E-11D7-9043-00306589E6DA@duni.com">news:97065B0E-FE8E-11D7-9043-00306589E6DA@duni.com...
>> Hello!!
>>
>> Does that file "/var/lib/mysql/mysql.sock" exist?!!?!?
>>
>> Check to make sure mysql is running.
>>
>>
>>
>> Dan
>>
>>
>> On Oct 14, 2003, at 4:34 PM, gabriel@peugnet.cjb.net wrote:
>>
>> > I'm starting to use MySQL, well, trying to, and I get the next
>> message:
>> >
>> > Warning: mysql_connect(): Can't connect to local MySQL server through
>> > socket
>> > '/var/lib/mysql/mysql.sock' (2)
>> >
>> > The manual says that mysql_connect() can be called without arguments.
>> > That's
>> > what I'm doing.
>> >
>> > What's wrong?
>> >
>> > Thanks,
>> > Gabriel.
>> >
>> > --
>> > PHP Database Mailing List (http://www.php.net/)
>> > To unsubscribe, visit: http://www.php.net/unsub.php
>> >
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-------------------------
Joe Nilson Zegarra Galvez
   Sistemas Kola Real
 Telefax : 0051-54-256658
  Movil: 0051-54-9603244

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux