p0ng0
07-30-2007, 05:41 AM
Hey,
i wondered if someone can shed some light on to a problem i've got with my mySQL.
I'm currently doing a project, small, that clients can log into our website and view their cases (solicitors firm) online.
I tried and tested the database and website at home, on my personal computer. Everything there worked. I put all the files onto my iPod so that i could do this at work and hopefully get it to work there.
I installed a web server called Abyss; which i find to be very useful and easy to use. I'm using phpMyAdmin to create the databases and for mySQL i'm using WinMySQLadmin 1.4.
If you're aware of WinMySQLadmin, you'll know that there are 3 lights, traffic-lights, red, amber and green. When the light is on green, everything is ok and running. At home, the lights are green.
At work, the lights are red.
When i go to localhost, the page should display a login screen, as it does at home, but instead i get the following error:
Warning: mysql_pconnect() [function.mysql-pconnect]: Can't connect to MySQL server on 'localhost' (10061) in C:\Program Files\Abyss Web Server\htdocs\Connections\connectDB.php on line 9
Fatal error: Can't connect to MySQL server on 'localhost' (10061) in C:\Program Files\Abyss Web Server\htdocs\Connections\connectDB.php on line 9
Here is the coding for the actual page called "connectDB.php
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_connectDB = "localhost";
$database_connectDB = "users";
$username_connectDB = "root";
$password_connectDB = "*hidden*";
$connectDB = mysql_pconnect($hostname_connectDB, $username_connectDB, $password_connectDB) or trigger_error(mysql_error(),E_USER_ERROR);
?>
i wondered if someone can shed some light on to a problem i've got with my mySQL.
I'm currently doing a project, small, that clients can log into our website and view their cases (solicitors firm) online.
I tried and tested the database and website at home, on my personal computer. Everything there worked. I put all the files onto my iPod so that i could do this at work and hopefully get it to work there.
I installed a web server called Abyss; which i find to be very useful and easy to use. I'm using phpMyAdmin to create the databases and for mySQL i'm using WinMySQLadmin 1.4.
If you're aware of WinMySQLadmin, you'll know that there are 3 lights, traffic-lights, red, amber and green. When the light is on green, everything is ok and running. At home, the lights are green.
At work, the lights are red.
When i go to localhost, the page should display a login screen, as it does at home, but instead i get the following error:
Warning: mysql_pconnect() [function.mysql-pconnect]: Can't connect to MySQL server on 'localhost' (10061) in C:\Program Files\Abyss Web Server\htdocs\Connections\connectDB.php on line 9
Fatal error: Can't connect to MySQL server on 'localhost' (10061) in C:\Program Files\Abyss Web Server\htdocs\Connections\connectDB.php on line 9
Here is the coding for the actual page called "connectDB.php
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_connectDB = "localhost";
$database_connectDB = "users";
$username_connectDB = "root";
$password_connectDB = "*hidden*";
$connectDB = mysql_pconnect($hostname_connectDB, $username_connectDB, $password_connectDB) or trigger_error(mysql_error(),E_USER_ERROR);
?>