Board index   FAQ   Search  
Register  Login
Board index php forum :: Database mySQL & php coding

mysql_pconnect issue

Codes here !

Moderators: macek, egami, gesf

mysql_pconnect issue

Postby psychomantum » Sun Dec 08, 2002 1:27 pm

I can't figure out why I keep running into this error. MySQL is running and PHP is running as an apache module, but I always get this:
Warning: Lost connection to MySQL server during query in /var/www/html/bands/us/il/tripwire/guest.php on line 27
Unable to connect to SQL server


And here is the code:
Code: Select all
mysql_pconnect("musicalliance.info", "$username", "$password")
               or die("Unable to connect to SQL server");


can anybody help me!? I would really appreciate it.

FYI - I have all the permissions set properly, and I have the database setup in mysql
psychomantum
New php-forum User
New php-forum User
 
Posts: 10
Joined: Sat Dec 07, 2002 8:04 pm

Postby Oleg Butuzov » Mon Dec 09, 2002 3:28 am

are you tried mysql_connect()
Oleg Butuzov
Last Samuray
Last Samuray
 
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am

Postby psychomantum » Tue Dec 10, 2002 12:07 am

Yeah I tried that one already

thanks though
psychomantum
New php-forum User
New php-forum User
 
Posts: 10
Joined: Sat Dec 07, 2002 8:04 pm

Postby WiZARD » Tue Dec 10, 2002 12:31 am

psychomantum wrote:Yeah I tried that one already

thanks though

Set time to live in httpd.conf, or MySQL.
Actually time for php or mysql not enouth :cry:

Interestin how you learn PHP ad MySQL than you cannot cofigure them?
User avatar
WiZARD
Moderator
Moderator
 
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol

Postby psychomantum » Sat Dec 14, 2002 10:09 pm

Set time to live in httpd.conf, or MySQL.


Gee, let's not get too specific or I might figure out what to do :(
psychomantum
New php-forum User
New php-forum User
 
Posts: 10
Joined: Sat Dec 07, 2002 8:04 pm


Return to mySQL & php coding

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron