PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : PHPMyAdmin Fehler 1045



warze
12.02.06, 11:18
Hallo,

ich habe folgendes Problem.

ich bekomme wenn ich PHPMyAdmin aufrufe immer diese Fehlermeldungen:


Warning: ini_set(): Unable to access in /srv/www/htdocs/phpMyAdmin/libraries/session.inc.php on line 39

Warning: Cannot modify header information - headers already sent by (output started at /srv/www/htdocs/phpMyAdmin/libraries/session.inc.php:39) in /srv/www/htdocs/phpMyAdmin/libraries/auth/config.auth.lib.php on line 81

Warning: Cannot modify header information - headers already sent by (output started at /srv/www/htdocs/phpMyAdmin/libraries/session.inc.php:39) in /srv/www/htdocs/phpMyAdmin/libraries/select_theme.lib.php on line 92



Willkommen bei phpMyAdmin 2.7.0-pl2

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 Kennwort in Ihrer config.inc.php überprüfen und sich vergewissern, dass diese den Informationen, welche sie vom Administrator erhalten haben, entsprechen.

Fehler
MySQL meldet:

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


Ich weiß echt nicht was ich falsch mach kann mir einer helfen?

Hier habe ich mal meine config.inc.php geschrieben. Kann mir einer sagen wo der Fehler ist?



$cfg['Servers'][$i]['host'] = 'localhost'; // 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]['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)
$cfg['Servers'][$i]['auth_type'] = 'http'; // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user'] = 'root'; // MySQL user
$cfg['Servers'][$i]['password'] = 'Q4wxSWz7'; // MySQL password (only needed
// with 'config' auth_type)
$cfg['Servers'][$i]['only_db'] = ''; // If set to a db-name, only
// this db is displayed
// at left frame
// It may also be an array
// of db-names
$cfg['Servers'][$i]['verbose'] = ''; // Verbose name for this host - leave blank to show the hostname

$cfg['Servers'][$i]['pmadb'] = ''; // Database used for Relation, Bookmark and PDF Features
// (see scripts/create_tables.sql)
// - leave blank for no support
// DEFAULT: 'phpmyadmin'
$cfg['Servers'][$i]['bookmarktable'] = ''; // Bookmark table
// - leave blank for no bookmark support
// DEFAULT: 'PMA_bookmark'
$cfg['Servers'][$i]['relation'] = ''; // table to describe the relation between links (see do

Danke


Gruß

Warze

Tomek
12.02.06, 12:04
Das ist schon mal nicht richtig:

$cfg['Servers'][$i]['auth_type'] = 'http'; // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user'] = 'root'; // MySQL user
$cfg['Servers'][$i]['password'] = 'Q4wxSWz7'; // MySQL password (only needed
// with 'config' auth_type)
In den Kommentaren steht doch, dass du kein Passwort eingeben sollst, wenn du http- oder cookie-basierte Anmeldung benutzt.

warze
13.02.06, 08:12
Hallo,


funktioniert trotzdem nicht. Bringt immer noch die gleiche Meldung.
Egal wie ich es schreibe.

warze
13.02.06, 15:00
kann mir keiner Helfen?

Ich weiß echt nicht was ich falsch mache.

blackdream
13.02.06, 15:32
du hast keinen controlluser eingerichtet

$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)
$cfg['Servers'][$i]['auth_type'] = 'http'; // Authentication method (config, http or cookie based)?

zb:

$cfg['Servers'][$i]['controluser'] = 'pma';
$cfg['Servers'][$i]['controlpass'] = 'pw;
$cfg['Servers'][$i]['auth_type'] = 'http';