Dogboys Posted May 17, 2006 Share Posted May 17, 2006 <?php // config.php :: Low-level app/database variables.$dbsettings = Array( "server" => "localhost", // MySQL server name. (Default: localhost) "user" => "pugs_username", // MySQL username. "pass" => "pugs_password", // MySQL password. "name" => "pugs_DragonKnight", // MySQL database name. "prefix" => "dk", // Prefix for table names. (Default: dk) "secretword" => "lol"); // Secret word used when hashing information for cookies.?>Ok my database is named dragonknight and my username and password just for instances is used username and password.The pugs is my website name and it comes out like that.And this is my error.Access denied for user 'pugs_username'@'localhost' to database 'pugs_DragonKnight'What do you guys think the problem is? Quote Link to comment https://forums.phpfreaks.com/topic/9831-something-wrong-with-my-script/ Share on other sites More sharing options...
Ferenc Posted May 17, 2006 Share Posted May 17, 2006 Either user name and/or password is incorect/ Quote Link to comment https://forums.phpfreaks.com/topic/9831-something-wrong-with-my-script/#findComment-36503 Share on other sites More sharing options...
Dogboys Posted May 17, 2006 Author Share Posted May 17, 2006 [!--quoteo(post=374553:date=May 16 2006, 11:47 PM:name=Ferenc)--][div class=\'quotetop\']QUOTE(Ferenc @ May 16 2006, 11:47 PM) [snapback]374553[/snapback][/div][div class=\'quotemain\'][!--quotec--]Either user name and/or password is incorect/[/quote]Um should i not have the pugs_ part?Becuase my login is called pug and whenver i make an account name it says pugs_*than username*So what do you think about the pugs part?and also i think this is the error for the wrong password.Warning: mysql_connect(): Access denied for user 'pugs_udername'@'localhost' (using password: YES) in /home3/pugs/public_html/lib.php on line 55Access denied for user 'pugs_dogboys'@'localhost' (using password: YES) Quote Link to comment https://forums.phpfreaks.com/topic/9831-something-wrong-with-my-script/#findComment-36504 Share on other sites More sharing options...
.josh Posted May 17, 2006 Share Posted May 17, 2006 either your username and/or your password is incorrect. using password:YES simply means that you were indeed trying to connect using a password, as opposed to not using a password at all. your password could be fine but your username typoed. if www.pugs.com is your website then yes, pugs_username will be your username. so if your username was dogboys then it would be pugs_dogboysyour password is NOT pugs_password. that is, if your password was n0d0z3 it would NOT be pugs_n0d0z3that is, unless you specifically entered that in as your password. then it would be. But pugs_ is not automatically added onto your password. Quote Link to comment https://forums.phpfreaks.com/topic/9831-something-wrong-with-my-script/#findComment-36506 Share on other sites More sharing options...
Dogboys Posted May 17, 2006 Author Share Posted May 17, 2006 [!--quoteo(post=374556:date=May 17 2006, 12:02 AM:name=Crayon Violent)--][div class=\'quotetop\']QUOTE(Crayon Violent @ May 17 2006, 12:02 AM) [snapback]374556[/snapback][/div][div class=\'quotemain\'][!--quotec--]either your username and/or your password is incorrect. using password:YES simply means that you were indeed trying to connect using a password, as opposed to not using a password at all. your password could be fine but your username typoed. if www.pugs.com is your website then yes, pugs_username will be your username. so if your username was dogboys then it would be pugs_dogboysyour password is NOT pugs_password. that is, if your password was n0d0z3 it would NOT be pugs_n0d0z3that is, unless you specifically entered that in as your password. then it would be. But pugs_ is not automatically added onto your password.[/quote]THANK YOU SO MUCH!!!!!!!! Quote Link to comment https://forums.phpfreaks.com/topic/9831-something-wrong-with-my-script/#findComment-36715 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.