[Help] website

04/09/2010 23:47 King_Arthur#16
Quote:
Originally Posted by Crazy123456 View Post
its still not connecting .... idk whats wrong
but the error was fixed
Wait. You say it's still not connecting but you also say the error was fixed. So is your problem complete or do you just mean you fixed the user & password flip-flop but it still doesn't work?

If it's still not working: Are you hosting the website on the same server that you are hosting your EO Server on?
04/10/2010 01:28 Crazy123456#17
Quote:
If it's still not working: Are you hosting the website on the same server that you are hosting your EO Server on?
yep same ip same computer

AND

Quote:
<?php
require_once './inc/class.captcha.php';
// Configurations
$myhost="173.27.234.190";
$mypass="rufeng"; //your server login password
$myuser="root"; //your server login username
$mydbacc="account"; //your server account database
$mydbdata="my"; //your server my database name
$serveraddress="173.27.234.190"; //your server ip
$serverport=5816; //your server connection port
$mydb="my"; //your server my database
$servername = "DemonsBeast"; //Put your servername here.
$link = "http://demonsbeast.servegame.com"; //Put your website link here

// Dont Edit after this
mysql_connect($myhost,$myuser,$mypass);
mysql_select_db($mydb);
?>

anything wrong with my config.php?


AND ERROR
Quote:
Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on '173.27.234.190' (10060) in C:\xampp\htdocs\www\config.php on line 16
ERROR
04/10/2010 02:56 .Ash#18
Make a account in navicat for that IP..
Ex:

User id: root
Password: rufeng
Host: 173.27.234.190
port:3306

etc..
04/10/2010 04:22 King_Arthur#19
Your first error came back with "Access denied for user: 'rufeng'@'localhost' (Using password: YES)" Which means that your website was able to connect to your database, but was denied access because of an improper login.

For the second try, you got "Can't connect to MySQL server on '173.27.234.190' (10060)" which means your website could not connect to your mysql server at all. This is likely due to a firewall.

An easy solution is changing $myhost back to localhost. Then see if you get any errors after your website is able to successfully reach your mysql server.
04/10/2010 16:14 corey88#20
Copy everything inside the config.php
and past in the top of index.php :)
04/10/2010 19:18 Crazy123456#21
Quote:
Copy everything inside the config.php
and past in the top of index.php
huh ?????

Quote:
An easy solution is changing $myhost back to localhost. Then see if you get any errors after your website is able to successfully reach your mysql server.
yeh i can get on the site with no errors but no one else can
[Only registered and activated users can see links. Click Here To Register...]
04/10/2010 20:09 King_Arthur#22
Sounds like a firewall issue to me if no one else can connect to your website.

As for eregi, You can't use that function anymore since php 5.3.2. [Only registered and activated users can see links. Click Here To Register...] suggests you replace it with preg_match with an i modifier. Check link for more details.
04/10/2010 20:19 mr.inferno#23
go back to that thread and look what other people have written the same thing happened to me its because u r using a newer version of xammp someone posted the files u need for that version