Also, ich hab einen Trinity Server 3.3.5a, und wollte mir eine Regipage für den Server machen! Das hab ich dann über Wampserver auch getan! Das ganze zeig von der Regipage rein in den www ordner... (eine index.php, und ein ordner mit bildern!) Wenn ich dann auf die Seite gehe, bekomme ich folgenden Fehler:
PHP Code:
Error: Unable to connect to MySQL server. MySQL reported: Access denied for user 'root'@'localhost' (using password: YES).
Und wenn ich trotz des Fehlers mit nen Account erstellen will kommt:
PHP Code:
Error: Unable to connect to MySQL server. MySQL reported: Access denied for user 'root'@'localhost' (using password: YES). Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\wamp\www\index.php on line 479 Error: Unable to connect to MySQL server. MySQL reported: Access denied for user 'root'@'localhost' (using password: YES).
Und "Creation of Account *** was not possible"
Im Fehler steht ja, dass root@localhost kein Zugriff auf die db bekommt, aber wenn ich in der db (ich benutz navicat lite) nachsehe, unter Manage Users, hat root@localhost alle Rechte...
In der Index.php steht folgendes:
<?php /* SPORA for Antrix v1.32 Simple Page Of Registration of Accounts for Antrix
It is made in the form of one page with fields of input of the information of an account and the list of players being on a server.
Original Creation by mirage666 for MaNGOS http://pomm.da.ru/
Modified for Antrix by Kandyman http://www.burning-wow.com
*/
$lang="en"; // Language ("en" - english, "ru" - russian) $host="127.0.0.1"; // HOST for Antrix database $user="root"; // USER for Antrix database $password="trinity"; // PASS for Antrix database $db="realmd"; // NAME of Antrix database $hostr="127.0.0.1"; // HOST for Login database $userr="root"; // USER for Login database $passwordr="trinity"; // PASS for Login database $dbr="realmd"; // NAME of Login database $database_encoding = 'CP1251'; // Set encoding $img_base = "img/"; // Image dir $server = "127.0.0.1"; // Antrix Server Address $port = "8129"; // Antrix Server Port $title="Dark Specteral WoW"; // Insert the title of your server here $lock_acc=0; // Lock created account to IP address (1 - on, 0 - off) $lock_reg=0; // Registration only one (or more) account from one IP address // 0 - not limit, 1 - one acc, 2 - two acc, etc...
Switch ($lang) { case "en": $button="create_en.gif"; $text = Array( 'acc' => 'Creation of account', 'create' => 'is completed !', 'failed' => 'was not possible !', 'not_all' => 'Fields are filled not all', 'taken' => 'is already taken !', 'playerson' => 'players online', 'off' => 'is offline', 'name' => 'Account Name', 'password' => 'Password', 'ip_limit' => Array('From your IP ',' accounts are already created'), 'char' => Array('Name','Race','Class','LvL','Location'), ); break; case "ru": $button="create_ru.gif"; $text = Array( 'acc' => 'Ñîçäàíèå àêêàóíòà', 'create' => 'çàâåðøåíî !', 'failed' => 'íåâîçìîæíî !', 'not_all' => 'Çàïîëíåíû íå âñå ïîëÿ', 'taken' => 'is already taken !', 'playerson' => 'èãðîêîâ íà ñåðâåðå', 'off' => 'ñåé÷àñ îòêëþ÷åí', 'name' => 'Èìÿ Àêêàóíòà', 'password' => 'Ïàðîëü', 'ip_limit' => Array('Ñ âàøåãî IP ',' àêêàóíòîâ óæå ñîçäàíî'), 'char' => Array('Ïåðñîíàæ','Ðàñà','Êëàññ','ËâË','Ðàñïîëîæåíèå'), ); break; }
if ($this->link_id) { if (@mysql_select_db($db_name, $this->link_id)) return $this->link_id; else error('Unable to select database. MySQL reported: '.mysql_error(), __FILE__, __LINE__); } else error('Unable to connect to MySQL server. MySQL reported: '.mysql_error(), __FILE__, __LINE__); }
function query($sql) { $this->query_result = @mysql_query($sql, $this->link_id);
function error($message, $file, $line, $db_error = false) { global $siteerrors; $s = "\t\t".'Error: <strong>'.$message.'.</strong>'."\n"; echo $s; }
function get_zone_name($mapid, $x, $y){ global $maps_a, $zone;
if (!empty($maps_a[$mapid])) { $zmap=$maps_a[$mapid]; if (($mapid==0) or ($mapid==1) or ($mapid==530)) { $i=0; $c=count($zone[$mapid]); while ($i<$c) { if ($zone[$mapid][$i][2] < $x AND $zone[$mapid][$i][3] > $x AND $zone[$mapid][$i][1] < $y AND $zone[$mapid][$i][0] > $y) $zmap=$zone[$mapid][$i][4]; $i++; } } } else $zmap="Unknown zone"; return $zmap; }
function test_realm(){ global $server, $port; $s = @fsockopen("$server", $port, $ERROR_NO, $ERROR_STR,(float)0.5); if($s){@fclose($s);return true;} else return false; }
function get_realm_name(){ global $hostr, $userr, $passwordr, $dbr, $database_encoding; $realm_db = new DBLayer($hostr, $userr, $passwordr, $dbr); $realm_db->query("SET NAMES $database_encoding"); $query = $realm_db->query("SELECT * FROM `realmlist`"); $result = $realm_db->fetch_assoc($query); $realm_db->close(); unset($realm_db); return($result['name']); }
Da ja sonst schlecht was falsch sein kann, denke ich, dass es daran liegt!
Wenn ich bei Navicat auf Connection information gehe steht da unter anderem:
Host Name/Ip Adress: 5.89.226.210
Port: 3316
Info: 5.89.226.210 via TCP/IP
Ich hoffe, jemand kann mir helfen, denn ich hocke den ganzen Tag schon an dem scheiß^^
EDIT: Rausgefunden, das es an meiner mysql version liegt, hab aber eine halbe stunde nach ner mysql version unter 4.0 die auch mit Wampserver kompatibel ist gesucht, und nichts gefunden... kennt jemand eine Alternative zu Wampserver, wo es mysql unter 4.0 für gibt?
regipage Problem 07/31/2011 - Metin2 Private Server - 2 Replies Also ich habe einen pserver,und hab mir grad regiapge gemacht,habe alles richtig gemacht,aber msql geht immer nach 2 sec aus,apache bleibt an.
Skpye ist aus und msn usw. auch nur hamachi an.
köönte mir jmnd helfebn.
da steht Warning!Terminating worker thread "1"!!!!!!!!!!
Problem mit Regipage 04/26/2011 - Metin2 Private Server - 2 Replies Hallo Com.
Ich habe die Regipage von hem gedownloadet..
Doch bei der Instalation steht ganz untern : SQL-Datenbank (Homepage)
Was muss ich dort eintragen ?
Danke schonmal
[Problem]RegiPage 01/19/2010 - Metin2 Private Server - 1 Replies Also ich habe ein hamachi server gemacht es ging alles blos nun.
Geht es um die regipage .. Ich komme in die regipage rein von xBLooMx ...
aber mein freunde nicht bei dene kommt :
Der Server unter 5........188 braucht zu lange, um eine Antwort zu senden.
was soll ich tuhen und bitte helfen das ich es peile !!!
Noch etwas : Ich habe W-Lan Verbindung mit FritzBox und ivh habe es gamht micht /etc/rc.d/netif restart und ifconfig
{Problem}Regipage 12/28/2009 - Metin2 Private Server - 1 Replies Hallo Leute,
Bei meiner Regipage läuft alles einwandfrei,
Apache,MySQL sind alle gestartet in Xampp
Nur wenn ich auf die Page connecten will kommt
Warning: mysql_connect() : Can't connect to MySQL server on '5.127.200.100' (10060) in C:\xampp\htdocs\config.php on line 16
Es konnte keine Verbindung zur Datenbank hergestellt werden.
Fehlermeldung: Can't connect to MySQL server on '5.127.200.100' (10060)
So langsam bin ich am verzweifeln,
Problem mit RegiPage 12/25/2009 - Metin2 Private Server - 2 Replies Also ich habe eine Regi Page wenn ich dort ein ACC erstelle steht da immer acc vorhanden aber den acc gibt es gar nicht !!!!
Warum ist das so weiss einer??