Page 1 of 1
Mysql + PHP installation
Posted: Mon Sep 17, 2007 10:44 am
by JasonMcAuley
I recently installed php on my web server (Unix) and I am having issues with mysql. I have been using the mysql service on this server for java in the past, and have done so without issues. I am able to use the mysql command line to run queries without issue. However, I cannot access the mysql DB through php at all. It is as if php has no tie to the mysql database that is running. Is there some sort of mysql or php configuration to allow php scripts to access the database?
Posted: Mon Sep 17, 2007 12:33 pm
by leonglass
When you compiled php did you have the --with-mysql flag set?
Re: Mysql + PHP installation
Posted: Mon Sep 17, 2007 3:12 pm
by califdon
JasonMcAuley wrote:I recently installed php on my web server (Unix) and I am having issues with mysql. I have been using the mysql service on this server for java in the past, and have done so without issues. I am able to use the mysql command line to run queries without issue. However, I cannot access the mysql DB through php at all. It is as if php has no tie to the mysql database that is running. Is there some sort of mysql or php configuration to allow php scripts to access the database?
Have you read these?
http://us2.php.net/install.unix
http://www.onlamp.com/pub/a/php/2000/11 ... admin.html