mk, Well Try using this as your config.php
Quote:
<?php
// generated August 26, 2011 11:13:20
// mysql server details
define('host', 'localhost'); // Your database host
define('user', 'root'); // Your database username
define('pass', 'test'); // Your database password
define('mydbdata', 'my'); // Your database name my
define('mydbacc', 'account'); // Your database name account
define('serveraddress', 'hamanchi ip'); // Your Server address
define('serverport', '5816'); // Your serverport
define('mydb', 'my'); // Your my database
define('servername', 'BlackThunder Online'); // Your Server Name
define('poweredby', 'Powered By *****************'); // Dont Delete!
define('imgdir', 'http://hamanchi ip/'); // Your Image dir
// conect to database
@mysql_connect($myhost, $myuser, $mypass) or die('<h1>Unable to connect to database server.</h1>');
@mysql_select_db(@mydb) or die('<h1>Unable to connect to database server.</h1>');
?>
|
I automaticlly noticed and i didnt say it a bit ago, This line,
Quote:
|
define('serverport', '3306'); // Your serverport
|
is the wrong port. 3306 is the mysql port.
This is the correct port for the server not mysql.
Quote:
|
define('serverport', '5816'); // Your serverport
|
And, I think this line(s) here
Quote:
@mysql_connect(host, user, pass) or die('<h1>Unable to connect to database server.</h1>');
@mysql_select_db(mydbdata) or die('<h1>Unable to connect to database server.</h1>');
|
Should be
Quote:
@mysql_connect($myhost, $myuser, $mypass) or die('<h1>Unable to connect to database server.</h1>');
@mysql_select_db(@mydb) or die('<h1>Unable to connect to database server.</h1>');
|
But try my config (ive edited it so it would be easier for you)and just edit the hamanchi IP spot and try it.
This is pretty much the config that i use, and it does work so i thought maybe that would help.
If it doesnt, Sorry, I tried to help.
And King_Arthur
The site files, by looking at the config, is from the EO section. Just saying.