473,322 Members | 1,644 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Call to undefined function: mysql_connect()

rpnew
188 100+
Hi,

well i know that i've some problem here with php and mysql.. mainly with php compilation with mysql...
now i've "php 4.2.2" on server... and "mysql Ver 14.12 Distrib 5.0.24, for pc-linux-gnu (i686) using readline 5.0"

  1. when i run phpinfo() it shows

    --with-mysql=shared,/usr but no mysql related other info
  2. when i run php from commandline then it shows following error "PHP Warning: Unable to load dynamic library '/usr/lib/php4/mysql.so' - libmysqlclient.so.10: cannot open shared object file: No such file or directory"
so let me know what should i suppose to do here??

Regards,
RP
May 29 '08 #1
2 1390
pbmods
5,821 Expert 4TB
Heya, RP.

Sounds like PHP is misconfigured; it's looking for the MySQL libraries in the wrong place.

Run `which mysql` in a terminal to determine where MySQL is installed. Generally, MySQL's lib files are located in the same place as its binaries (on many systems, it will be located in /usr/local/mysql).

Try re-configuring PHP --with-mysq=/path/to/mysql, then recompile and re-install.
May 30 '08 #2
rpnew
188 100+
Heya, RP.

Sounds like PHP is misconfigured; it's looking for the MySQL libraries in the wrong place.

Run `which mysql` in a terminal to determine where MySQL is installed. Generally, MySQL's lib files are located in the same place as its binaries (on many systems, it will be located in /usr/local/mysql).

Try re-configuring PHP --with-mysq=/path/to/mysql, then recompile and re-install.
Hi,
Thanks for the reply.. i'll look into that...

Regards,
RP
May 30 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: BT | last post by:
Hi .. a newbie question. I get the following error: Fatal error: Call to undefined function: mysql_connect() in /var/www/html/index.php on line 3. I have the following RPMS installed on RH7.2...
4
by: gc | last post by:
I'm a PHP and MySQL newbie. I have a feeling a lot of you may have seen this before. I'm teaching myself PHP/MySQL and trying to setup a guestbook. I'm running latest versions of Apache, PHP and...
2
by: inonzuk | last post by:
why strange you ask? here goes: I have been working with Php and Mysql for a week without any problems. Today I tried executing a php page that connects to mysql and creates a new database, I...
5
by: Grant Nosbush | last post by:
I have searched the newsgroups and the web trying to solve this problem and just can't get it. Maybe someone will be able to help. I am getting the following error when I try to view a test page...
5
by: awdsites | last post by:
Hi, I'm a noob with a server so keep that in mind :) Been trying to connect with php to mysql and all I get is: "Fatal error: Call to undefined function: mysql_connect()" I've read and read...
0
by: java | last post by:
Hi there! After I overcame some short_open_tag (thanks, Rik!) I encounter another strange php-behaviour. The script I just got to work on the windows-commandline obviously does as php.ini tells...
1
by: maverick1911 | last post by:
Can any body help with the above error and how to fix it . here is the code refered to in the error Fatal error: Call to undefined function displayHeader() in C:\wamp\www\functions.php on line...
8
by: seni786 | last post by:
Hi i am having problems with some code that i wrote out for a shopping cart. the shopping cart it self works when a product is added but when the 'CART CONTENT' button is clicked on it comes up...
7
by: lumo2000 | last post by:
hello i am not able to get mysql running. you can get my server/php settings/details here: http://damn-i-have.no-ip.com/phpinfo.php i already enabled the following stuff in my php.ini NOTE:...
49
by: Julian Bowler | last post by:
Please can some one help with my problem; I am running Apache web server on my lap top, plus a mysql server and php. The version of php currently installed is 5.2.5. when i write some php to connect...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.