Can you log on with mysql -u***** -p
If you can then there is some thing up with you php install?
If you can not then look at the mysql db and at users to see if you have
permissions..


Simon
-----Original Message-----
From: Antonio Ortega Sancho [mailto:[EMAIL PROTECTED]]
Sent: 04 September 2001 11:53
To: Mysql (E-mail)
Subject: Newbie with mysql


   Hi, I've got a question that i'm sure that it is easy to solve. I've
installed mysql in Redhat Linux 7.0 and it is working fine. I've also
installed PHP module so i can make PHP pages. I've tried to do a small page
that connects to mysql server but this error appears:

Warning: Can't connect to local MySQL server through socket
'/var/lib/mysql/mysql.sock' (111) in /var/www/html/prueba.php on line 4

  The code that I use for accesing the page is:

   $link = mysql_pconnect ('localhost','root','')

    I'm not sure if it is a PHP error or a MySQL server configuration
problem. I didn't change anything on MySQL, so perhaps, I have to change
something.


    Any idea?

    Thanks in advance.


---------------------------------------------------------------------
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

Reply via email to