im using win xp and installed apache 2.x and php5...both working fine.
when i test:
<?php
phpinfo();
?>
it works fine. trouble starts when i started installing mysql 4.x
server on the same machine. mysql run successfully but the issue is i
cant integrate it with php. i already copied -- php_mysql.dll on my
\php\ext and libmysql.dll on \php as well as on \windows\system32.
also i made necessary changes on php.ini, but when i run :
<?php
mysql_connect("localhost","root","123") or die("cannot connect");
?>
it's not working. what could have gone wrong? 5 3036
jcoder wrote:
im using win xp and installed apache 2.x and php5...both working fine.
when i test:
<?php
phpinfo();
?>
it works fine. trouble starts when i started installing mysql 4.x
server on the same machine. mysql run successfully but the issue is i
cant integrate it with php. i already copied -- php_mysql.dll on my
\php\ext and libmysql.dll on \php as well as on \windows\system32.
also i made necessary changes on php.ini, but when i run :
<?php
mysql_connect("localhost","root","123") or die("cannot connect");
?>
it's not working. what could have gone wrong?
What do you get for an error?
If it's just "cannot connect", print a REAL informative message - such
as that returned by mysql_error();
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp. js*******@attglobal.net
==================
actually there's no error msg..it just gave me blank page.
<?php
mysql_connect("localhost","root","123") or die("cannot connect");
echo'ok';
?>
even the work "ok" is not showing either. im wondering, if my password
or username, or the host is wrong it should give me the msg "cannot
connect", but there's nothing. and if i restart apache, no error msgs
also.
jcoder pisze:
actually there's no error msg..it just gave me blank page.
<?php
mysql_connect("localhost","root","123") or die("cannot connect");
echo'ok';
?>
even the work "ok" is not showing either. im wondering, if my password
or username, or the host is wrong it should give me the msg "cannot
connect", but there's nothing. and if i restart apache, no error msgs
also.
try
if (function_exists(mysql_connect)) {
mysql_connect("localhost","root","123") or die("cannot connect");
print('OK');
} else {
print ('I forgot about php_mysql');
}
What does it show ?
also put error_reporting(E_ALL) at top of Your script
D.
jcoder wrote:
actually there's no error msg..it just gave me blank page.
<?php
mysql_connect("localhost","root","123") or die("cannot connect");
echo'ok';
?>
even the work "ok" is not showing either. im wondering, if my password
or username, or the host is wrong it should give me the msg "cannot
connect", but there's nothing. and if i restart apache, no error msgs
also.
OK, then in your php.ini file, enable display_errors and set
error_reporting to E_ALL. That will get you some error messages.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp. js*******@attglobal.net
==================
On Wed, 17 Oct 2007 20:29:23 -0700, jcoder wrote:
im using win xp and installed apache 2.x and php5...both working fine.
when i test:
<?php
phpinfo();
?>
it works fine. trouble starts when i started installing mysql 4.x server
on the same machine. mysql run successfully but the issue is i cant
integrate it with php. i already copied -- php_mysql.dll on my \php\ext
and libmysql.dll on \php as well as on \windows\system32.
also i made necessary changes on php.ini, but when i run :
<?php
mysql_connect("localhost","root","123") or die("cannot connect");
?>
it's not working. what could have gone wrong?
how can you tell it's not working? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Spidah |
last post by:
Looking at the list of changes made in PHP5 one of them is
"Removed the bundled MySQL client library"
Does anyone know exactly what this means? I assume we will still be able to
code for...
|
by: Kevin |
last post by:
I posted this to the sourceforge phpMyAdmin ng, but there was a comment
that it was properly a php question, so I'm posting it here.
I'm on Windows XP, and have just installed Apache, php 5, and...
|
by: genenamg |
last post by:
Hi,
I am trying to run and configure Apache 2.0, php 5 and mysql on win xp
professional - this is the first time I have tried to install and
configure all three. I am having difficulty trying...
|
by: solitary.wanderer52 |
last post by:
I am running PHP5 under Linux. Just a newbie and would like to have it
integrated with MySQL. When I execute
phpinfo() in a webpage, I see tons of info on php, but nothing on
MySQL. Perhaps...
|
by: john |
last post by:
All:
Very experienced developer, newbie to PHP. My situation:
I have installed on my WIndows XP machine the following:
* PHP 5.2.1
* MySQL 5.0
* Apache 2.2
All of these are installed...
|
by: deko |
last post by:
I've just loaded phpMyAdmin on a Debian Linux server with Apache2, MySql5 and
PHP5.
myserver # dpkg -l | grep php
ii libapache-mod-php5 5.2.0-8+etch4
ii libapache2-mod-php4 4.4.4-8+etch2
ii...
|
by: Lazandra |
last post by:
Hi,
I have installed php5 and mysql 4.1. But i can't get them to work properly. I have searched and found some sites but they all give different ways of doing it.
Does anyone know of a site...
|
by: raaman rai |
last post by:
Hello, what is the configuration requirement for PHP 5.2.5 and MySQL 5. I have correctly configured PHP 5 and Apache Server but not able to connect to MySQL. I get the error "Undefined function...
|
by: Robin S. |
last post by:
I've used phpinfo() to confirm settings for mySQL on our host server,
and it's not returning accurate info.
phpinfo() returns a mySQL client API version of 3.23.54 (uselss for
me), where as a...
|
by: DolphinDB |
last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation.
Take...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
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...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
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...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
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...
| |