Usually this means your MySQL daemon, mysqld, is not started. Which OS are
you using? Under RedHat Linux, you can get your mysqld running on init
runlevels 3 and 5 (network services with and without X-windows) this way:
% chkconfig --level 35 mysqld on
% /etc/init.d/mysqld start
check to make sure it's working:
% chkconfig --list mysqld
now your mysqld daemon will be running--and will start on runlevels 3 and
5 every time the system boots.
now try connecting to MySQL server via php script.
On Thu, 26 Jul 2001, cjackson wrote:
> Warning: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111)
>
> What does this error mean? I am trying to authenticate from a php script using the
>following code...
>
> $db=mysql_pconnect("localhost","username","password");
>
> The user "username" is able to login to mysql ata command prompt.
>
> Thanks,
> Jackson
>
> ---------------------------------------------------------------------
> Before posting, please check:
> http://www.mysql.com/manual.php (the manual)
> http://lists.mysql.com/ (the list archive)
>
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail <[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
>
>
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php