
5th October 2005, 17:52
|
|
Member
|
|
Join Date: Aug 2005
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Config PHP with MySQL
I have a quick question. If I am going to have an external MySQL server (ie not on localhost) do I need to install PHP with "--with-mysql"? If so, what part of MySQL do I need installed on localhost to have the client libraries?
Thanks,
James
|

5th October 2005, 18:25
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,853
Thanks: 781
Thanked 1,558 Times in 1,477 Posts
|
|
Quote:
|
Originally Posted by ProTrooper
I have a quick question. If I am going to have an external MySQL server (ie not on localhost) do I need to install PHP with "--with-mysql"?
|
You always need that if you want to work with MySQL in PHP!
Quote:
|
Originally Posted by ProTrooper
If so, what part of MySQL do I need installed on localhost to have the client libraries?
Thanks,
James
|
You should install the MySQL-devel packages to be able to compile PHP with MySQL. Please have a look at "The Perfect Setup" series on HowtoForge. I'm sure your distribution is also covered there, and the howtos show how to install the appropriate MySQL-devel package.
|

5th October 2005, 21:03
|
|
Member
|
|
Join Date: Aug 2005
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Okay thanks. I am doing a different setup than the "perfect setup" on a CentOS. I am trying to have a seperate database server.
mysql is a dependacy of mysql-devel. So do I need to install mysql server but just not run it?
Last edited by ProTrooper; 5th October 2005 at 21:34.
|

6th October 2005, 11:25
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 19,805
Thanks: 285
Thanked 1,805 Times in 1,357 Posts
|
|
I'am not shure how CentOS named the packages, but mysql is mostly the name of the mysql (client) librarys and mysql-server is the name of the mysql server so you must install the mysql package to get a working PHP + mysql installation.
Last edited by till; 6th October 2005 at 11:58.
|

6th October 2005, 11:33
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,853
Thanks: 781
Thanked 1,558 Times in 1,477 Posts
|
|
If CentOS is using the same package names than Fedora, then the packages you have to install are:
mysql, mysql-devel, mysql-server
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 12:56.
|
Recent comments
1 day 4 hours ago
1 day 9 hours ago
1 day 9 hours ago
1 day 9 hours ago
1 day 11 hours ago
1 day 13 hours ago
1 day 15 hours ago
1 day 15 hours ago
1 day 16 hours ago
1 day 17 hours ago