Mysql + PHP installation

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
JasonMcAuley
Forum Newbie
Posts: 1
Joined: Mon Sep 17, 2007 10:36 am

Mysql + PHP installation

Post 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?
leonglass

Post by leonglass »

When you compiled php did you have the --with-mysql flag set?
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: Mysql + PHP installation

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