Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MYSQL on win xp and apache and ok php5

Status
Not open for further replies.

Mashang

Programmer
Joined
Sep 4, 2004
Messages
5
Location
CA
hi,
about a week ago i designed a photo album using mysql database .. but now that i want to install the mysql on my system .. it doesnt work .. i have the green light beside my clock but when i test it over my own server it doesnt work.
I tried to test it with a simple code and it says :
Fatal error: Call to undefined function mysql_connect() in D:\arimoos\sql.php on line 20
I know my code doesnt have a prob but i will copy the line 20 for you :
$link = mysql_connect("$dbServer", "$dbUser", "$dbPass") or die("Could not connect");
....
Thnx anyway
p.s. so you i havent change anything on my php.ini and apache conf ..
if anyone can help me real fast cause i need to upload this thing by end of this month or ...

 
Hi thnx for the tip but
its eems i cant find the softwqare you said on the internet
can u point me into the direction ?!
 
I may be wrong about this. Did you compile PHP5 yourself? It has to be compiled with --with-mysql=[path to mysqlclient libs dir]
 
thnx guys ..
first so i can answeryou : i didnt change anything on php.ini ..
but recently i got the mysql administrator for win which is pretty good then ... and now when i want to connect the server it gives me a log file which has error but i cant figure out how to fix it
log file is :
InnoDB: The first specified data file .\ibdata1 did not exist:
InnoDB: a new database to be created!
040926 10:16:08 InnoDB: Setting file .\ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
040926 10:16:09 InnoDB: Log file .\ib_logfile0 did not exist: new to be created
InnoDB: Setting log file .\ib_logfile0 size to 5 MB
InnoDB: Database physically writes the file full: wait...
040926 10:16:09 InnoDB: Log file .\ib_logfile1 did not exist: new to be created
InnoDB: Setting log file .\ib_logfile1 size to 5 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Doublewrite buffer not found: creating new
InnoDB: Doublewrite buffer created
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
040926 10:16:14 InnoDB: Started
MySQL: ready for connections.
Version: '4.0.21-nt-max' socket: '' port: 3306 Source distribution
040926 11:46:58 MySQL: Normal shutdown

040926 11:47:02 InnoDB: Starting shutdown...
040926 11:47:06 InnoDB: Shutdown completed
040926 11:47:06 MySQL: Shutdown Complete

plz help me i have only this week to present my work to school !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top