Plötzlich "Ungültiger Host-Name für Server 1" bei Aufruf von PHPmyadmin...

gbit

New Member
Guten Tag,

kuriose Dinge passieren imoment bei mir ;D Nachdem gestern aus irgendeinem unempflindlichen Grund mein Mailserver erstmal alle Mails von locker 5 Tagen angesammelt hat und dann auf einma rausgehauen hat, funktioniert seit Heute mein phpmyadmin nimmer...

Ich habe aufm Server Debian Lenny, IPSconfig und die jeweils aktuellsten stables von apache, mysql und phpmyadmin laufen...

Am Freitag habe ich noch einiges mit phpmyadmin gemacht, hat alles wunderbar geklappt, ich wollt mich heut Morgen wieder einloggen, nix da, phpmyadmin mag mich nimmer und spuckt folgende Fehlermeldung aus:

Willkommen bei phpMyAdmin 2.11.8.1deb5

phpMyAdmin hat versucht eine Verbindung zum MySQL-Server aufzubauen, jedoch hat dieser die Verbindung zurückgewiesen. Sie sollten Ihre Einstellungen für Host, Benutzername und Passwort in Ihrer config.inc.php überprüfen und sich vergewissern, dass diese den Informationen, welche Sie vom Administrator erhalten haben, entsprechen.
Fehler

MySQL meldet: Dokumentation
#1045 - Access denied for user 'root'@'localhost' (using password: NO)
Ungültiger Host-Name für Server 1. Bitte überprüfen Sie Ihre Konfiguration.

Doof ist nur, das ich nicht weiss, was der von mir will... In der apache.conf unter /etc/phpmyadmin ist der Alias richtig eingetragen, ebenfalls ist der Hostname beim apache richtig eingetragen und in der config.inc.php von phpmyadmin steht halt das übliche:

/* Authentication type */
//$cfg['Servers'][$i]['auth_type'] = 'cookie';
/* Server parameters */
//$cfg['Servers'][$i]['host'] = 'localhost';
//$cfg['Servers'][$i]['connect_type'] = 'tcp';
//$cfg['Servers'][$i]['compress'] = false;
/* Select mysqli if your server has it */
//$cfg['Servers'][$i]['extension'] = 'mysql';
/* Optional: User for advanced features */
// $cfg['Servers'][$i]['controluser'] = 'pma';
// $cfg['Servers'][$i]['controlpass'] = 'pmapass';

Hat vorher alles wunderbar geklappt, nur wieso urplötzlich nich mehr?! ISPconfig zeigt mir auch keinerlei updates vom Wochenende an...

Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Irgendwie versteh ich nit was der Server will, vorallem da die Virtuellen Hosts auch stimmen und der Hostname für den Server schon vorher localhost war in der config von phpmyadmin... :confused:
 
ja das is ja auch beabsichtigt so, da phpmyadmin über ispconfig 3 gesteuert wird, daher ist auch in der /usr/local/ispconfig/server/lib in der mysql_clientdb.conf meine richtigen Daten eingetragen... sprich:

<?php

$clientdb_host = 'localhost';
$clientdb_user = 'root';
$clientdb_password = '<mein password>';

?>
Auch im gleichen Ordner unter config.inc.php steht nichts besonderes, halt bei allen eingetragenen Hostnames "localhost"...
 
Schau mal da.

- mfg
 
japp hab ich alles schon gemacht, überall steht auch localhost drin ( was bei der Installation auch schon dort stand ) trotzdem komm ich nicht rein... per konsole kann ich mit als root einloggen, nur nicht über phpmyadmin...

gibs nen conf script für mysql bzw. phpmyadmin was ich zum neukonfigurieren ausführen könnte?
 
Hallo!
Wie wäre es denn, wenn du die Lösung hier veröffentlichst. Somit hätte Leute mit ähnlichem Problem auch etwas davon.

mfG
Thorsten
 
Ich habe da das gleiche Problem - exakt das gleiche.

Habe mit phpmyadmin noch gearbeitet und wollte es vorhin aufrufen -> Kaputt .. mit gleicher Fehlermeldung.

Falls jemand weis, wie man diesen Fehler beheben kann, wäre es sehr nett, wenn er die Lösung hier kund tun könnte.

Danke schonmal, MFG Flamme
 
Soo,.. da bin ich nochmal.

Bei mir hat sich das Problem eben von selbst gelöst, als ich meinen Server mal durchsucht hab.

Im Ordner /var/lib/phpmyadmin/config.inc.php hatten sich (warum weis ich immernoch nicht) 2 Fehler eingeschlichen.

(Die Nummern vor den Zeilen kommen von meinem vim und können ignoriert werden)

Datei vorher:
PHP:
 13 $i++;
 14 $cfg['Servers'][$i]['host']=''; phpinfo();//'] = 'localhost';
 15 $cfg['Servers'][$i]['extension'] = 'mysqli';
 16 $cfg['Servers'][$i]['connect_type'] = 'tcp';
 17 $cfg['Servers'][$i]['compress'] = false;
 18 $cfg['Servers'][$i]['auth_type'] = 'config';
 19 $cfg['Servers'][$i]['user'] = 'root';

Datei nachher:
PHP:
 13 $i++;
 14 $cfg['Servers'][$i]['host']='localhost';
 15 $cfg['Servers'][$i]['extension'] = 'mysqli';
 16 $cfg['Servers'][$i]['connect_type'] = 'tcp';
 17 $cfg['Servers'][$i]['compress'] = false;
 18 $cfg['Servers'][$i]['auth_type'] = 'cookie'; // Hier könnte evtl. auch http funktionieren
 19 $cfg['Servers'][$i]['user'] = 'root';

Naja.. vielleicht ist ja in eurer Config ein ähnlicher Fehler aufgetreten und ihr könnt das Problem so lösen.

MFG Flamme
 
Also bei mir sieht es so aus :
PHP:
<?php
/**
 * Debian local configuration file
 *
 * This file overrides the settings made by phpMyAdmin interactive setup
 * utility.
 *
 * For example configuration see /usr/share/doc/phpmyadmin/examples/config.default.php.gz
 *
 * NOTE: do not add security sensitive data to this file (like passwords)
 * unless you really know what you're doing. If you do, any user that can
 * run PHP or CGI on your webserver will be able to read them. If you still
 * want to do this, make sure to properly secure the access to this file
 * (also on the filesystem level).
 */

/**
 * Server(s) configuration
 */
$i = 0;
// The $cfg['Servers'] array starts with $cfg['Servers'][1].  Do not use $cfg['Servers'][0].
// You can disable a server config entry by setting host to ''.
$i++;

// Uncomment to override the default configuration
//$cfg['Servers'][$i]['host']          = '123.123.123.123'; // MySQL hostname or IP address
//$cfg['Servers'][$i]['port']          = '';          // MySQL port - leave blank for default port
//$cfg['Servers'][$i]['socket']        = '';          // Path to the socket - leave blank for default socket
//$cfg['Servers'][$i]['connect_type']  = 'tcp';    // How to connect to MySQL server ('tcp' or 'socket')
//$cfg['Servers'][$i]['extension']     = 'mysql';     // The php MySQL extension to use ('mysql' or 'mysqli')
//$cfg['Servers'][$i]['compress']      = FALSE;       // Use compressed protocol for the MySQL connection
//                                                    // (requires PHP >= 4.3.0)
//$cfg['Servers'][$i]['controluser']   = '';          // MySQL control user settings
//                                                    // (this user must have read-only
//$cfg['Servers'][$i]['controlpass']   = '';          // access to the "mysql/user"
//                                                    // and "mysql/db" tables).
//                                                    // The controluser is also
//                                                    // used for all relational
//                                                    // features (pmadb)
//$cfg['Servers'][$i]['auth_type']     = 'cookie';    // Authentication method (config, http or cookie based)?
//$cfg['Servers'][$i]['user']          = 'root';      // MySQL user
//$cfg['Servers'][$i]['password']      = '';          // MySQL password (only needed
//                                                    // with 'config' auth_type)
//$cfg['Servers'][$i]['only_db']       = '';          // If set to a db-name, only
//                                                    // this db is displayed in left frame
//                                                    // It may also be an array of db-names, where sorting order is relevant.
//$cfg['Servers'][$i]['verbose']       = '';          // Verbose name for this host - leave blank to show the hostname
//
//$cfg['Servers'][$i]['pmadb']         = 'phpmyadmin';// Database used for Relation, Bookmark and PDF Features
//                                                    // (see scripts/create_tables.sql)
//                                                    //   - leave blank for no support
//                                                    //     DEFAULT: 'phpmyadmin'
//$cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';// Bookmark table
//                                                    //   - leave blank for no bookmark support
//                                                    //     DEFAULT: 'pma_bookmark'
//$cfg['Servers'][$i]['relation']      = 'pma_relation';// table to describe the relation between links (see doc)
//                                                    //   - leave blank for no relation-links support
//                                                    //     DEFAULT: 'pma_relation'
//$cfg['Servers'][$i]['table_info']    = 'pma_table_info';// table to describe the display fields
//                                                    //   - leave blank for no display fields support
//                                                    //     DEFAULT: 'pma_table_info'
//$cfg['Servers'][$i]['table_coords']  = 'pma_table_coords';// table to describe the tables position for the PDF schema
//                                                    //   - leave blank for no PDF schema support
//                                                    //     DEFAULT: 'pma_table_coords'
//$cfg['Servers'][$i]['pdf_pages']     = 'pma_pdf_pages';// table to describe pages of relationpdf
//                                                    //   - leave blank if you don't want to use this
//                                                    //     DEFAULT: 'pma_pdf_pages'
//$cfg['Servers'][$i]['column_info']   = 'pma_column_info';// table to store column information
//                                                    //   - leave blank for no column comments/mime types
//                                                    //     DEFAULT: 'pma_column_info'
//$cfg['Servers'][$i]['history']       = 'pma_history';// table to store SQL history
//                                                    //   - leave blank for no SQL query history
//                                                    //     DEFAULT: 'pma_history'
//$cfg['Servers'][$i]['verbose_check'] = TRUE;        // set to FALSE if you know that your pma_* tables
//                                                    // are up to date. This prevents compatibility
//                                                    // checks and thereby increases performance.
//$cfg['Servers'][$i]['AllowRoot']     = TRUE;        // whether to allow root login
//$cfg['Servers'][$i]['AllowDeny']['order']           // Host authentication order, leave blank to not use
//                                     = '';
//$cfg['Servers'][$i]['AllowDeny']['rules']           // Host authentication rules, leave blank for defaults
//                                     = array();

?>

Was kann ich da tun weil bei mir funktioniert PHPMyAdmin nicht :(
Das kommt immer:
Fehler
MySQL meldet:

#1045 - Access denied for user 'root'@'localhost' (using password: NO)


Ungültiger Host-Name für Server 1. Bitte überprüfen Sie Ihre Konfiguration.

was kann ich da machen ?
 
Last edited by a moderator:
Logg dich mal als root ein und mach dann
Code:
find / -name config.inc.php

Und dann guck die dateien mal durch die er da auflistet .. die sich in einem phpmyadmin-ordner befinden (warn bei mir 4 stück)^^.. Irgendwo ist da eine Datei, in der die einträge nicht auskommentiert sind.

Btw. .. *hust* .. wenn du hier konfigurationen postest.. solltest du evtl. darauf achten, das du ip-adressen und passwörter entfernst^^
 
PHP:
// diese Zeile ist auskommentiert
/* diese
    beiden sind es auch */

$i = 0; // Dieses Statement ist nicht auskommentiert
 
Der mit "//" eingeleitete Kommentar beginnt bei den beiden Zeichen und geht bis zum Ende der Zeile.
Die andere Art von Kommentar geht von "/*" bis "*/" und kann mehrere Zeilen umfassen.
 
das habe ich auch als fehler

hallo zusammen

ich habe genau das gleiche problem. ich habe an meinem server nicht geaendert und komme auch ueber phpmyadmin nicht mehr drauf.
dank dem tipp von flamme habe ich die erste fehlermeldung entfernt.
nur so nebenbei die datei /var/lib/phpmyadmin/config.inc.php wurde bei mir am 22 jun 2009 gegen 3:24 erstellt obwohl ich nicht am server war.

leider habe ich noch zwei andere fehler zum einen:
#1045 - Access denied for user 'root'@'localhost' (using password: NO)
auch da habe ich nichts am server geaendert und per mysql komme ich auch drauf und kann die tabellen sehen.
hat hier noch jemand einen tip fuer mich?

und der letzte fehler wo ich nicht weiterkomme ist:
Die Erweiterung mysqli kann nicht geladen werden. Bitte überprüfen Sie Ihre PHP-Konfiguration. - Dokumentation

??? was soll das denn fuer eine erweiterung sein?

ich wuerde mich ueber hilfe sehr freuen.
lg phil
 
Back
Top