Author Topic: DB Error >> MySQL Connection Failed  (Read 8089 times)

0 Members and 1 Guest are viewing this topic.

Offline Alexis

  • Pre-Newbie
  • Posts: 4
    • View Profile
DB Error >> MySQL Connection Failed
« on: February 11, 2003, 05:30:38 AM »
i keep getting this error message:

Quote
Warning: Access denied for user: 'swznet_made@localhost' (Using password: YES) in /home/swznet/public_html/4images/includes/db_mysql.php on line 39

Warning: MySQL Connection Failed: Access denied for user: 'swznet_made@localhost' (Using password: YES) in /home/swznet/public_html/4images/includes/db_mysql.php on line 39

DB Error: Could not connect to the database server (localhost, swznet_made).


------------------------------

here's what's inside of my sql database: do i need this agbook1? cos i deleted the agbook2.


Quote
swznet_agbook1

Users in swznet_agbook1
swznet_agbook1

Connection Strings
Perl$dbh = DBI->connect("DBI:mysql:swznet_agbook1:localhost","swznet_agbook1","<PASSWORD HERE>");
PHP$dbh=mysql_connect ("localhost", "swznet_agbook1", "<PASSWORD HERE>") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("swznet_agbook1");


swznet_agbook2

Users in swznet_agbook2
swznet_agbook2

Connection Strings
Perl$dbh = DBI->connect("DBI:mysql:swznet_agbook2:localhost","swznet_agbook2","<PASSWORD HERE>");
PHP$dbh=mysql_connect ("localhost", "swznet_agbook2", "<PASSWORD HERE>") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("swznet_agbook2");


swznet_swznetmade

Users in swznet_swznetmade
swznet_made

Connection Strings

Perl$dbh = DBI->connect("DBI:mysql:swznet_swznetmade:localhost","swznet_made","<PASSWORD HERE>");
PHP$dbh=mysql_connect ("localhost", "swznet_made", "<PASSWORD HERE>") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("swznet_swznetmade");

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
DB Error >> MySQL Connection Failed
« Reply #1 on: February 11, 2003, 05:35:21 AM »
1. Make sure u entered correct username / password for your DB.

2. what is "agbook1"? what are u talking about?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)