php & MySQL troubles

wxdqz

New Member
My topic got removed or something so I\'ll repost.

I\'m trying to get started using php. My admin skills are bupkis. A fellow developer has opened space on his yellow dog linux box.

He has installed php4 and mysql but we\'ve had problems a-plenty. php is working, but a simple call to a mysql function shows that we are far from home. Originally, we were getting the message:

\"Fatal error: Call to unsupported or undefined function mysql_connect() in /u/j/jonr/public_html/php/createtable2/step3.php3 on line 25\"

We took the suggestion to recompile using \"--with-mysql\"

this produced:

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, i.e., mod_auth_mysql, php 3.0 mod_perl,
you must not rely on hp\'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.


and the browser message:

Warning: MySQL Connection Failed: Can\'t connect to local MySQL server through socket \'/var/lib/mysql/mysql.sock\' (111) in /home/httpd/html/jon/createtable2/step3.php3 on line 27

We are both admin rookies just trying to hack our way through so I can get back to working with php. Any help greatly appreciated!

Jon
 
Back
Top