Jump to content

Need help! Getting errors for setting up a AQW private server


homework

Recommended Posts

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 4
Access 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!

 

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.