Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



Reply
MySQL Connector w/o MySQL installed?
Old 03-27-2009, 02:02 AM MySQL Connector w/o MySQL installed?
Skilled Talker

Posts: 55
Name: Brian
Trades: 0
Good day,

My current setup:
CentOS 5.2
PHP 5.2.9
Apache/2.2.11

Im trying to connect to a remote MySQL database but getting:
Call to undefined function: mysql_connect(). Please install the MySQL Connector for PHP

I purposely configured PHP without MySQL, as I will not be hosting any local databases.

The more and more I read, it seems I will be forced to install MySQL in order to configure PHP --with-mysql? or to simply connect to a remote db?

Any suggestions would be great!
bmp99 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-27-2009, 04:11 AM Re: MySQL Connector w/o MySQL installed?
Skilled Talker

Posts: 55
Name: Brian
Trades: 0
A little more info for anyone who can help:

This is my ./configure:

'./configure' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-config-file-path=/usr/local/apache2/php'

I attempted:

[root@custom php-5.2.9]# ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-config-file-path=/usr/local/apache2/php --with-mysql

Result:

configure: error: Cannot find MySQL header files under yes.
Note that the MySQL client library is not bundled anymore!

So im not sure if a MySQL installation is needed for MySQL header files?
bmp99 is offline
Reply With Quote
View Public Profile
 
Old 03-29-2009, 11:38 PM Re: MySQL Connector w/o MySQL installed?
Skilled Talker

Posts: 55
Name: Brian
Trades: 0
solution to this:

you can just compile mysql using --without-server
bmp99 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to MySQL Connector w/o MySQL installed?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11281 seconds with 12 queries