473,405 Members | 2,167 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,405 software developers and data experts.

help w/ php mysql connect problem!!

i run php4+mysql+apache2 on linux(ubuntu). every time i try to use
mysql_connect function, it says something like this:
Fatal error: Call to undefined function: mysql_connect() in
/home/ligerdave/website/test.php on line 13
plz help!!!!!

Aug 30 '05 #1
5 1405
ligerdave wrote:
i run php4+mysql+apache2 on linux(ubuntu). every time i try to use
mysql_connect function, it says something like this:
Fatal error: Call to undefined function: mysql_connect() in
/home/ligerdave/website/test.php on line 13


It seems your php is compiled without mysql support (see phpinfo()
for details).

/Marcin
Aug 30 '05 #2
On 30 Aug 2005 13:12:32 -0700, "ligerdave" <da********@gmail.com> wrote:
i run php4+mysql+apache2 on linux(ubuntu). every time i try to use
mysql_connect function, it says something like this:
Fatal error: Call to undefined function: mysql_connect() in
/home/ligerdave/website/test.php on line 13


You haven't got PHP compiled with MySQL support. You need to either recompile
PHP with MySQL support enabled, or compile a dynamically loadable MySQL PHP
extension module.

http://uk.php.net/manual/en/ref.mysql.php or search Google for the error
message you got, there will be lots of hits.

--
Andy Hassall :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Aug 30 '05 #3
ligerdave wrote:
i run php4+mysql+apache2 on linux(ubuntu). every time i try to use
mysql_connect function, it says something like this:
Fatal error: Call to undefined function: mysql_connect() in
/home/ligerdave/website/test.php on line 13
plz help!!!!!


With Ubuntu, you shouldn't _have_ to compile anything yourself.
Make sure you have installed the php4-mysql package, and make sure the
'extension=mysql.so' line is in your php.ini file.
Aug 30 '05 #4
There is something wrong with your PHP4;
Please install it again, and make sure your have removed the ";" before
"extensions: php_mysql.so" in your php.ini

Aug 30 '05 #5
In article <11**********************@o13g2000cwo.googlegroups .com>, ligerdave
says...

i run php4+mysql+apache2 on linux(ubuntu). every time i try to use
mysql_connect function, it says something like this:
Fatal error: Call to undefined function: mysql_connect() in
/home/ligerdave/website/test.php on line 13
plz help!!!!!


Based on the error it sounds like you might have installed PHP without enabling
the MySQL option. If test your configuration with "php_info();", that should
tell you if you need to re-install PHP with that option.

Rich
--
Newsguy -- http://newsguy.com

Sep 1 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: photoelectric | last post by:
When trying to run the below script on an apache/1.3.26 with mysql and php I get the following error message: Warning: mysql_connect() : Access denied for user: 'nobody@software-ece.rutgers.edu'...
1
by: Smriti Dev | last post by:
Hi, I have a question regarding autonumbering . I'm using linked tables between msql and MS Access. Quite a few linked tables exist with relationships. The auto increment fields once linked...
6
by: TonyB | last post by:
I'm running the zip'd version of PHP (PHP 5.1.2 zip package) downloaded from here: http://www.php.net/downloads.php. PHP won't connect with MySQL. >From docs and threads, it seems enabling...
3
by: yes_its_just_me | last post by:
Hi everyone, I haven't used PHP since version 4 and am trying to use it for a new project. All I'm trying to do is connect to a MySQL database and show the contents of that database (as a start)....
1
by: servo | last post by:
I created a user "test1" (which then got the username "debscrof_test1" from CPanel), a password for the user "test2", and then added the user to a new database "testdb" with all priviliges Then a...
4
by: Eminosoft | last post by:
This is the problem i am getting. It is simple but i am new to the PHP. "Warning: mysql_connect() : Access denied for user 'ODBC'@'localhost' (using password: YES) in D:\wamp\www\dddd.php on line...
0
by: Alan Silver | last post by:
Hello, I'm a newbie at PHP and MySql, although I have wads of experience of ASP, ASP.NET, SQL Server, etc. I have just installed PHP 5.2.3 on a server (Windows Server 2003), as well as MySql...
2
by: sbettadpur | last post by:
hello I am getting following error while connecting to mysql through php Warning: mysql_connect() : Access denied for user: 'pds@localhost' (Using password: YES) Actually I hosted one...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.