For Programmers: Free Programming Magazines  


Home > Archive > PHP SQL > April 2004 > cannot connect to data base









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cannot connect to data base
Anna K.

2004-04-19, 8:34 am

Hi, thanks for a link to about system date, but I have another problem :)
Who can help?

I use apache 1.3.19, php 4.2.3 i MySql 4.0.16. After several queries I get
message - can't connect to MySql. I use mysql_pconnect() and never close().
If I shut down apache and restart, the query can be executed without closing
browser (still the same script).

What can I do to avoid such situation. Should I change something in config
files?

Thanks

Anna K.


Joachim Mæland

2004-04-19, 12:41 pm

On Mon, 19 Apr 2004 11:05:47 +0200, Anna K. wrote:

> I use apache 1.3.19, php 4.2.3 i MySql 4.0.16. After several queries I get
> message - can't connect to MySql. I use mysql_pconnect() and never close().
> If I shut down apache and restart, the query can be executed without closing
> browser (still the same script).


Do you have any special reasons for using mysql_pconnect, not
mysql_connect? If not; Use mysql_connect...

In either case, please read:
http://www.php.net/manual/en/function.mysql-connect.php
http://www.php.net/manual/en/functi...ql-pconnect.php

--
mvh/regards
Joachim Mæland

If everything seems under control, you're just not going fast enough.
-Mario Andretti

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com