MySQL for PHP requirements

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
SpecialK
Forum Commoner
Posts: 96
Joined: Mon Sep 18, 2006 3:49 pm

MySQL for PHP requirements

Post by SpecialK »

Should be simple question, but everything I find on it gives tutorials not answers.

Is MySQL required to be installed on a machine for PHP to be able to run with MySQL support?
I want to reconfigure PHP using a --with-mysql or --with-mysqli, but don't want to have to setup MySQL on the server. This means I won't have a path for either of those potential commands. The reason: the database I want access to is already running on another server.

I didn't want to try to reconfigure on a Friday afternoon and break things before I go home, so am leaving this task for Monday AM.
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: MySQL for PHP requirements

Post by jackpf »

You need the mysql extension installed.

You don't need mysql server installed - you can just connect to the other server, if the permissions allow it.
User avatar
SpecialK
Forum Commoner
Posts: 96
Joined: Mon Sep 18, 2006 3:49 pm

Re: MySQL for PHP requirements

Post by SpecialK »

Thanks. I actually had the server package on the machine. Did the configure with pointing to the "mysql_config" program and everything works great.
Post Reply