Error: Unable to connect to MySQL server. MySQL reported: Lost connection to MySQL server at 'reading initial communication packet', system error: 113.
I get that when I try to create accounts through my webpage? What am I doing wrong here?
My set up is this
My Dedicated Server -> MySQL with character + world DB
My Website Hosting Service -> Website with account creation.
Code:
<?php
$lang="en"; // Language ("en" - english, "ru" - russian)
$title="Maximum Warcraft|Irish Private Server"; // Insert the title of your server here
$host="94.**censored**.158.154"; // HOST for Character+logon database
$user="root"; // USER for Character+logon database
$password="**censored**"; // PASS for Character+logon database
$db="character"; // NAME of Character+ logon database
$hostr="94.**censored**.158.154"; // HOST for Logonserver+characters database
$userr="root"; // USER for Logonserver database[same as character]
$passwordr="**censored**"; // PASS for Logonserver+char database
$dbr="character"; // NAME of logon+char database
$database_encoding = 'CP1251'; // Set encoding
$img_base = "img/"; // Image dir
$server = "94.**censored**.158.154"; // ArcEMU server addres (the realmlist)
$port = "8129"; // ArcEMU Server Port
$lock_acc=0; // Lock created account to IP address (1 - on, 0 - off)
$lock_reg=3; // Registration only one (or more) account from one IP address
// 0 - not limit, 1 - one acc, 2 - two acc, etc...