473,397 Members | 1,961 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,397 software developers and data experts.

Connecting to MySql

I have installed MySql on a Windows 98 workstation. I start the service
with the command: mysqld

I can connect to the database and see tables, etc.

I have installed Apache Ver 1.X with PHP ver 5.0.0b1

Simple PHP scripts work fine.

When I try to connect to the Mysql database I get this error from PHP in my
browser

Fatal error: Call to undefined function: mysql_connect() in c:\program
files\apache group\apache\htdocs\secretdb.php on line 30
With this version it is my understanding the MySql and ODBC support are
internal to PHP and I do not have to enable Windows extensions within the
PHP.ini file.. Anyone have any idea on why this function seems to be
undefined in PHP when it is internal? Should I download and install ver 4.x
I have updated MDAC to ver 2.7.
I am NEW to PHP, MySql and Apache and having fun!!!!!!

Regards,
Bob


Jul 16 '05 #1
1 2331
sam
"Bob Trautman" <bt********@austin.rr.com> wrote in message news:<XR********************@twister.austin.rr.com >...
I have installed MySql on a Windows 98 workstation. I start the service
with the command: mysqld

I can connect to the database and see tables, etc.

I have installed Apache Ver 1.X with PHP ver 5.0.0b1

Simple PHP scripts work fine.

When I try to connect to the Mysql database I get this error from PHP in my
browser

Fatal error: Call to undefined function: mysql_connect() in c:\program
files\apache group\apache\htdocs\secretdb.php on line 30
MySQL is not boundled an enabled by default in PHP any more (from v5.0)
but SQLite is .
With this version it is my understanding the MySql and ODBC support are
internal to PHP and I do not have to enable Windows extensions within the
PHP.ini file.. Anyone have any idea on why this function seems to be
undefined in PHP when it is internal? Should I download and install ver 4.x
I have updated MDAC to ver 2.7.


See the previous remarque.
Jul 16 '05 #2

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

Similar topics

0
by: Google Mike | last post by:
After a lot of thought and research, and playing with FreeTDS and InlineTDS, as well as various ODBC connections, I have determined that the fastest and cheapest way to get up and going with PHP on...
3
by: kamilla | last post by:
I have a mysql 3.5 server installed on a suse linux 8.1, with address 10.0.0.100. Now I want to access that db from a W2K pc, address 10.0.0.200. I am able to ping 10.0.0.100, but I cannot connect...
2
by: news | last post by:
We currently have our mySQL server on the same box as the Apache server. For security and load balancing, we're going to be moving the mySQL server to another box. We're already using a single...
4
by: CodeImp | last post by:
A simple app I quickly wrote to try getting info from a database. Here is the first part of its code. The rest of the code is irellevant. using System; using System.Data; using...
4
by: sympatico | last post by:
Hello Im seeking some code or way to connect VB.NET application with MySQL database. There are some softwares available which are very expensive. So anyone who knows to connect without a...
3
by: Jeremy Dillinger | last post by:
I am trying to design a program that will use data from a MySQL database. Currently all the data is being used with PHP scripts from a website. I am also trying to build a software solution that...
7
by: Frances | last post by:
this seems pretty straight-forward.. got this code $link = mysql_connect('localhost:3306', '<uid>', '<pswd>'); if (!$link) { die('Could not connect: ' . mysql_error()); } echo 'Connected...
3
by: Paradox Synthesist | last post by:
hi, i am a newbie to asp.net and have started learning mainly from websites. i have a question which IS very silly and trivial. ...
5
by: Ananthu | last post by:
Hi I have done all the codings part for connecting mysql server with java application but when i try to compile,the compilation is successful and during execution i get the following message, ...
8
by: Ananthu | last post by:
Hi I have done all the codings part for connecting mysql with java in eclipse environment. Coding Part: import java.sql.Connection; import java.sql.DriverManager; public class...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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.