Login Problem
Moderator: General Moderators
-
phpete0812
- Forum Newbie
- Posts: 11
- Joined: Mon Oct 10, 2005 1:14 pm
- Location: Santa Cruz. CA
Login Problem
I'm doing some work on a friend's PHP code.
He uses this code to organize a bunch of work related data.
He sent me the PHP script files and I then uploaded them to my own server.
The PHP pages require a login to access and view.
When I type in the name & password he gave me I get this warning:
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /home/content/m/e/n/menlo/html/pmtool/goremote/common/CommonLib.php on line 130
Failed to connect to the database ..!
Can anyone tell me what the problem is?
Thanks
Pete
He uses this code to organize a bunch of work related data.
He sent me the PHP script files and I then uploaded them to my own server.
The PHP pages require a login to access and view.
When I type in the name & password he gave me I get this warning:
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /home/content/m/e/n/menlo/html/pmtool/goremote/common/CommonLib.php on line 130
Failed to connect to the database ..!
Can anyone tell me what the problem is?
Thanks
Pete
-
phpete0812
- Forum Newbie
- Posts: 11
- Joined: Mon Oct 10, 2005 1:14 pm
- Location: Santa Cruz. CA
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
-
phpete0812
- Forum Newbie
- Posts: 11
- Joined: Mon Oct 10, 2005 1:14 pm
- Location: Santa Cruz. CA
-
phpete0812
- Forum Newbie
- Posts: 11
- Joined: Mon Oct 10, 2005 1:14 pm
- Location: Santa Cruz. CA
I found this below in a file called config.php
<?php
# define the database connection parameters here.
$DB_HOST = "localhost";
$DB_USER = "gric";
$DB_PASSWORD = "***";
$DB_NAME = "gric";
I then used "***" as my password & username, but got the same warning:
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /home/content/m/e/n/menlo/html/pmtool/goremote/common/CommonLib.php on line 130
Failed to connect to the database ..!
Jcart | removed database password
<?php
# define the database connection parameters here.
$DB_HOST = "localhost";
$DB_USER = "gric";
$DB_PASSWORD = "***";
$DB_NAME = "gric";
I then used "***" as my password & username, but got the same warning:
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /home/content/m/e/n/menlo/html/pmtool/goremote/common/CommonLib.php on line 130
Failed to connect to the database ..!
Jcart | removed database password
-
phpete0812
- Forum Newbie
- Posts: 11
- Joined: Mon Oct 10, 2005 1:14 pm
- Location: Santa Cruz. CA