PHP and MySQL auth?
| From: | Alex Sofronie | Date: | Tue, 28 Aug 2001 19:02:44 +0000 |
| Subject: | PHP and MySQL auth? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-64867@lists.php.net to get a copy of this message | ||
Hello, all.
What is the difference between:
Case 1: I auth with header('WWW-Auth.......') and validate the user from a
plain file. Next, i do something like
mysql_connect($the_db_host,$the_db_username,$the_db_pass);
mysql_select_db($the_db_name);
mysql_query("select * from table");
----- and it works fine.
Case 2. Without any form of auth, I read the text file and do
mysql_connect($the_db_host,$the_db_username,$the_db_pass);
mysql_select_db($the_db_name);
mysql_query("select * from table");
and the server response is:
Error 2002: Can't connect to local MySQL server through socket
'/var/lib/mysql/mysql.sock; (111)
What does this auth do with the rights on mysql?
Thanks.
Alex Sofronie
maxx@mail.dntis.ro