Connection to mysql and php compiling

wxdqz

New Member
when i compile php with mysql support i get a warning :

+--------------------------------------------------------------------+
| *** WARNING *** |
| |
| You chose to compile PHP with the built-in MySQL support. If you |
| are compiling a server module, and intend to use other server |
| modules that also use MySQL (e.g, mod_auth_mysql, PHP 3.0, |
| mod_perl) you must NOT rely on PHP's built-in MySQL support, and |
| instead build it with your local MySQL support files, by adding |
| --with-mysql=/path/to/mysql to your configure line. |
+--------------------------------------------------------------------+

i've tried a few paths but with an explicit path in the configure line, i get a message saying can't find headers. What files am i looking for exactly?

then, as is probably to be expected, i get error messages when trying to connect to a mysql database through a php file.

Warning: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111) in
/home/httpd/html/amigeekornot/prep.php3 on line 42

Warning: Supplied argument is not a valid MySQL-Link resource in /home/httpd/html/amigeekornot/prep.php3 on
line 43

Warning: MySQL Connection Failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111) in
/home/httpd/html/amigeekornot/prep.php3 on line 45

Warning: MySQL: A link to the server could not be established in /home/httpd/html/amigeekornot/prep.php3 on line
45

Warning: Supplied argument is not a valid MySQL result resource in /home/httpd/html/amigeekornot/prep.php3 on
line 46

Can anyone help me out with a shove in the right direction?

i'm using the amigeekornot code to test out my php and mysql setup with apache.

thanks and hope to hear from someone
-paulo
 
Back
Top