Jump to content

Recommended Posts

Posted (edited)

Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on '46.105.50.162' (4) in/home/lnukecom/public_html/index.php on line 191
Can't connect to MySQL server on '46.105.50.162' (4)

Edited by L2BlackDays
Posted

Create the account with this dates.

Host = %

Usser = imsexi (example)

Pass = asdasrR2354asf*SDF153!"#€¬ ( Need dificult, we want don't hack u)

 

etc

 

Now change ur configs like this

Ip = (Your Ip)

Usser = imsexi

Pass = asdasrR2354asf*SDF153!"#€¬

Posted

cant without pass? because i have this:

<?php $server_ip = "46.105.50.162";
           $mysql_user = "root";
           $mysql_pass = "";
           $database = "l2jdb";

           $connect = mysql_connect("$server_ip", "$mysql_user", "$mysql_pass") or die(mysql_error());
           $db_select = mysql_select_db("$database", $connect) or die(mysql_error());
           $query = mysql_query("SELECT online FROM characters WHERE online=1") or die(mysql_error()) ;

           $online_chars = mysql_num_rows($query);

          echo 'Players Online:'.$online_chars;

mysql_close($connect);
?>

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and 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..

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock