473,799 Members | 3,137 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

help w/ php mysql connect problem!!

i run php4+mysql+apac he2 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 1416
ligerdave wrote:
i run php4+mysql+apac he2 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********@gma il.com> wrote:
i run php4+mysql+apac he2 on linux(ubuntu). every time i try to use
mysql_connec t 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.u k :: 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+apac he2 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=mysq l.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************ **********@o13g 2000cwo.googleg roups.com>, ligerdave
says...

i run php4+mysql+apac he2 on linux(ubuntu). every time i try to use
mysql_connec t 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
49552
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' (Using password: YES) in /ece/under/group14/public_html/insert.php on line 7 Unable to Select database I have no idea what the cause is, any help would be appreciated. Thanks in advance.
1
1726
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 loose thier autonumber property and come up as numbers. I have developed a form interface and when I press the next record the next number does not come as the autonumber property has been lost. Thier are quite a few relationships with linked...
6
3281
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 PHP/MySQL connectivity on a Windows XP machine requires three configuration edits. These are: 1. In php.ini, enable php_mysql.dll by uncommenting "extension=php_mysql.dll". 2. In php.ini, set "extension_dir" to the folder containing
3
1448
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). However, nothing seems to be working. When I execute the script it does nothing, no error messages, nothing. I know that PHP is working because I've done the phpinfo(); thing and it works. I also know my database is working because I can access it...
1
3148
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 simple script to connect to the database (as I am trying to locate the source of the errors), as per below: <?php $dbhost = "localhost"; $dbuser = "debscrof_test1"; $dbpass = "test2"; $conn = mysql_connect($dbhost, $dbuser, $dbpass) or...
4
1177
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 2 Could not connect: Access denied for user 'ODBC'@'localhost' (using password: YES)"
0
1133
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 5.0.45. Both of these work fine independently, but I can't get PHP to connect to MySql. The first (and probably most basic) problem is that when I run phpinfo()
2
3267
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 website on linux server, there i uploaded php script to the server, in that script i am trying to connect to the mysql, but i am getting above said problem i.e access denied for this user. I given all privileges to 'pds' user like "SELECT, INSERT...
0
10490
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10260
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10030
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9078
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7570
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 presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6809
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5467
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2941
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.