homework Posted April 28, 2013 Share Posted April 28, 2013 Hi guys, I am having some trouble with setting up an Adventure Quest Worlds Private Server. (also known as AQW Private Server) Everytime I go to my hamachi IP or (localhost) I get this: Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\xampp\htdocs\scripts\mysql_connector.php on line 4Access denied for user 'ODBC'@'localhost' (using password: NO) Can someone please help? I have the right config.php file setup right: <?php $config['mysql']['host'] = "localhost"; // MySQL Server IP/Hostname $config['mysql']['user'] = ""; // MySQL Username. $config['mysql']['pass'] = ""; // MySQL Password. $config['mysql']['name'] = "aqw"; // MySQL Database name. ?> And here's my mysql_connector.php: <?php include("config.php"); mysql_connect($config['mysql']['host'], $config['mysql']['user'], $config['mysql']['pass']) or die(mysql_error()); mysql_select_db($config['mysql']['name']) or die(mysql_error()); ?> Someone please help! Quote Link to comment https://forums.phpfreaks.com/topic/277388-need-help-getting-errors-for-setting-up-a-aqw-private-server/ Share on other sites More sharing options...
Jessica Posted April 28, 2013 Share Posted April 28, 2013 The username is typically "root". We don't know what your username and password is though. But I doubt it's blank. Quote Link to comment https://forums.phpfreaks.com/topic/277388-need-help-getting-errors-for-setting-up-a-aqw-private-server/#findComment-1426982 Share on other sites More sharing options...
homework Posted April 28, 2013 Author Share Posted April 28, 2013 The username is typically "root". We don't know what your username and password is though. But I doubt it's blank. Yes, I tried typing root in as the user but it's still the same error. Quote Link to comment https://forums.phpfreaks.com/topic/277388-need-help-getting-errors-for-setting-up-a-aqw-private-server/#findComment-1426984 Share on other sites More sharing options...
mac_gyver Posted April 28, 2013 Share Posted April 28, 2013 i'll bet the error changed to - Access denied for user 'root'@'localhost' (using password: NO). that's not the same error you were getting before (yes it matters if the username in the error changed or not.) if the message didn't change to that, then your script is not using the correct config file. did you create the aqw database first? the root user should automatically have access to any database that exists and if you are doing this for a real site, you should not use the root user, but create a specific database username with a password to use. Quote Link to comment https://forums.phpfreaks.com/topic/277388-need-help-getting-errors-for-setting-up-a-aqw-private-server/#findComment-1427000 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.