Page 1 of 1

MySQL for PHP requirements

Posted: Fri Sep 25, 2009 4:06 pm
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.

Re: MySQL for PHP requirements

Posted: Fri Sep 25, 2009 4:20 pm
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.

Re: MySQL for PHP requirements

Posted: Mon Sep 28, 2009 11:13 am
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.