Hallo Profis,
ich habe wegen eines Plattencrashs mein System neu aufsetzen müssen.
Windows XP SP1, Apache/1.3.28, PHP/4.3.4, MySQL 3.23.58
Um die Datenbanken zu administrieren nutze ich phpmyadmin 2.1.0 und MySQL-Front 2.50
Ich habe mittels
update user set password=password('passwort') where user='root';
dem Root-User ein Passwort gegeben.
Über die Befehlszeile kann ich mich auch problemlos am Server anmelden und kann mit den vorhandenen Datenbanken connectieren.
Bei MySQL-Front sieht es auch gut aus, kann die Datenbanken einsehen und ändern.
Aber alle PHP-basierten Anwendungen können nicht mehr mit den Datenbanken arbeiten. Am auffälligsten ist phpmyadmin.
Hier bekomme ich die Meldung:
Access denied for user: '@localhost' to database 'test2'
wenn ich z.B. eine Datenbank mit phpmyadmin erstellen will.
In der config.inc.php habe ich aber den User eingetragen
Code:
$cfgServers[1]['host'] = 'localhost'; // MySQL hostname
$cfgServers[1]['port'] = ''; // MySQL port - leave blank for default port
$cfgServers[1]['adv_auth'] = false; // Use advanced authentication?
$cfgServers[1]['stduser'] = 'root'; // MySQL standard user (only needed with advanced auth)
$cfgServers[1]['stdpass'] = 'passwort'; // MySQL standard password (only needed with advanced auth)
$cfgServers[1]['user'] = 'root'; // MySQL user (only needed with basic auth)
$cfgServers[1]['password'] = 'passwort'; // MySQL password (only needed with basic auth)
$cfgServers[1]['only_db'] = ''; // If set to a db-name, only this db is accessible
$cfgServers[1]['verbose'] = ''; // Verbose name for this host - leave blank to show the hostname
Hier die my.ini:
Code:
[mysqld]
basedir=C:/mysql
#bind-address=XXX.XXX.XXX.XX
datadir=C:/mysql/data
#language=C:/mysql/share/your language directory
#slow query log#=
#tmpdir#=
#port=3306
#set-variable=key_buffer=16M
[WinMySQLadmin]
Server=C:/mysql/bin/mysqld-nt.exe
user=root
password=passwort
Jetzt weiss ich nicht mehr weiter
Bye,
Markus
Nachtrag:
Nach der Installation von phpmyadmin 2.6.0 pl2 bekomme ich in Startseite komischerweise folgendes angezeigt:
Verbunden mit MySQL 3.23.58-nt auf localhost als SYSTEM@localhost
Auszug aus config.inc.php:
Zitat:
$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]['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'] = 'config'; // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user'] = 'root'; // MySQL user
$cfg['Servers'][$i]['password'] = 'passwort'; // MySQL password (only needed
// with 'config' auth_type)
|