Help - Search - Members - Calendar
Full Version: Galaxytool Mysql Connection Failed
Zymic Webmaster Forums > Zymic Free Web Hosting > Zymic Free Web Hosting - General Discussion & Help
HaGGardSmurf
I am trying to upload 'GalaxyTool' for my alliance members to this website...

I uploaded all the files, but then when I go to install I get this error:

Galaxytool v4.3.2 - Installation check

Syntax: config.php success
Syntax: attributes.php success
Owner Incidental Apocalypse
Language english
Universe 7
MySQL connection failed
Database existency failed
MySQL version check failed

Check again



Here is my config.php:

<?php
/**
* DO NOT EDIT THIS FILE WITH NOTEPAD - USE WORDPAD INSTEAD!
*/

// Database connection
$dbusername = "haggardgalaxy_myhaggard"; // database username
$dbpassword = "xxxxxx"; // database password
$dbname = "haggardgalaxy_iadb"; // database name
$dbhost = "mysql"; // host address of your mysql server

// Database tables
$dbtablename = "galaxy";
$utablename = "usertable";
$playertable = "players";
$allytable = "alliances";
$noticetable = "notices";
$reporttable = "reports";
$iptablename = "iptable";
$shouttable = "shoutbox";
$allyhistory = "alliances_history";
$playerhistory = "players_history";


/*
* Only required if you want to update from a version lower than 4.0
*/
/*
$old_dbname = "stoned_352";
$old_dbtablename = "tabelle"; // Tabellenname in der Datenbank für die Galaxiedaten (Tabelle wird autom. erzeugt!) | tablename for galaxy data - will be created!
$old_utablename = "tabelle2"; // Tabellenname in der Datenbank für die Benutzer | tablename for users - will be created
$old_pstablename = "tabelle3"; // Tabellenname für die Playerstats | tablename for playerstats
$old_astablename = "tabelle4"; // Tabellenname für die Allystats | tablename for allystats
$old_noticetable = "tabelle5"; // Tabellenname für Notizen | tablename for notices
$old_reporttable = "tabelle6"; // Tabellenname für Spios | tablename for espionage reports
$old_iptablename = "tabelle7"; // Tabellenname für die zu speichernden IP Adressen | tablename for ip addresses
$old_shouttable = "tabelle8"; // Tabellenname für die Shoutbox (aktuelle Nachrichten) | tablename for shoutbox
$old_allyhistory = "tabelle9"; // Tabellenname für Allyhistory | tablename for allyhistory
*/

/*
* Do not change anything below this line
*/

// Update last action time at DB
if (isset($_SESSION['s_userid']) && is_numeric($_SESSION['s_userid'])) {
$query = "UPDATE $utablename SET last_action=now() WHERE id='".$_SESSION['s_userid']."'";
mysql_connect($dbhost,$dbusername,$dbpassword);
mysql_select_db($dbname);
mysql_query($query);
}
?>


I have no idea whats wrong... Any ideas?
Sugarblossoms
Your database username and database name are too long. It must be 16 characters or less in order for it to work. Your sitename is 13 characters long, add the underscore (_) and you'll have 14 characters long. Your only option is to have 2 more characters to add to that. (haggardgalaxy_ + 2 more characters)
swordz
The database and user names can be no longer than 16 characters, including haggardgalaxy_. Try changing the extra bits to 2 characters or less.

swordz
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.