Hallo, ich habe das MySQL packet von derr SuSE 9.0 DVD installiert. Nach eingabe von mysql_install_db steht da ich solle das root Password setzen, allerdings funktioniert das nicht, folgenden fehler krieg ich: mysqladmin -u root password 'new-password' mysqladmin: connet to server at 'localhost' failed error: 'Access denied for user: 'root@localhost' (Using password: NO)' mysqladmin -u root -h bianca password 'new-password' mysqladmin: connect to server at 'bianca' failed error: 'Host 'bianca.local' is not allowed to connect to this MySQL server' welche möglichkeit gibt es noch das root password zu setzen bzw. was mache ich falsch ? Gruss, Matthias
Am Samstag, 8. November 2003 22:57 schrieb Matthias Geissler:
mysqladmin -u root -h bianca password 'new-password' mysqladmin: connect to server at 'bianca' failed error: 'Host 'bianca.local' is not allowed to connect to this MySQL server'
welche möglichkeit gibt es noch das root password zu setzen bzw. was mache ich falsch ?
Hast du die Bianca beleidigt? :-) Geh fremd und probiere es mit phpMyAdmin. Ich hatte ein ähnliches Problem und hatte keine Lust mich mit mysql-Rechten auseinanderzusetzen, solange die DB im Testbetrieb läuft. Mit phpMyAdmin klappte die Rechte-Vergabe auf Anhieb, allerdings muß man sich für phpMyAdmin auch etwas einlesen. Vor allem mußt du /srv/www/htdocs/phpMyAdmin/config.inc.php (Pfad unter 8.2) anpassen. Al
Am Sat, Nov 08, 2003 at 10:57:52PM +0100 schrieben Sie:
Hallo,
Hi,
ich habe das MySQL packet von derr SuSE 9.0 DVD installiert. Nach eingabe von mysql_install_db steht da ich solle das root Password setzen, allerdings funktioniert das nicht, folgenden fehler krieg ich:
mysqladmin -u root password 'new-password' mysqladmin: connet to server at 'localhost' failed error: 'Access denied for user: 'root@localhost' (Using password: NO)'
file:/usr/share/doc/packages/mysql/html/manual.html#Access_denied Hier (und danach im Abschnitt) sind ziemlich viele Infos zu den users. Tibor
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hallo Matthias Am Samstag, 8. November 2003 22:57 schrieb Matthias Geissler:
Hallo,
ich habe das MySQL packet von derr SuSE 9.0 DVD installiert. Nach eingabe von mysql_install_db steht da ich solle das root Password setzen, allerdings funktioniert das nicht, folgenden fehler krieg ich:
mysqladmin -u root password 'new-password' mysqladmin: connet to server at 'localhost' failed error: 'Access denied for user: 'root@localhost' (Using password: NO)'
mysqladmin -u root -h bianca password 'new-password' mysqladmin: connect to server at 'bianca' failed error: 'Host 'bianca.local' is not allowed to connect to this MySQL server'
welche möglichkeit gibt es noch das root password zu setzen bzw. was mache ich falsch ?
Versuchs mal von der Commandline: Schritt 1: rcmysql stop (als root) Schritt 2: mysqld --user=mysql --skip-networking --skip-grant-tables - --datadir=/var/lib/mysql & Schritt 3: su - mysql -c "mysqladmin --user root password 'NEUESROOTPASSWORT'" Schritt 4: rcmysql stop Schritt 5: rcmysql start So müsste es klappen. CU Thorsten - -- Thorsten Körner | http://www.123tkShop.org openSource e-Commerce | http://www.123tk.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/rVxAs5R35vLkl/cRAnYyAKCGhTq4oX57lcETT2Uf2ZWTtLVxaQCcDqjV 4K+n+ImiuZ/GMHl0n4BriQU= =rFy4 -----END PGP SIGNATURE-----
Thorsten Körner schrieb:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hallo Matthias Am Samstag, 8. November 2003 22:57 schrieb Matthias Geissler:
Hallo,
ich habe das MySQL packet von derr SuSE 9.0 DVD installiert. Nach eingabe von mysql_install_db steht da ich solle das root Password setzen, allerdings funktioniert das nicht, folgenden fehler krieg ich:
mysqladmin -u root password 'new-password' mysqladmin: connet to server at 'localhost' failed error: 'Access denied for user: 'root@localhost' (Using password: NO)'
mysqladmin -u root -h bianca password 'new-password' mysqladmin: connect to server at 'bianca' failed error: 'Host 'bianca.local' is not allowed to connect to this MySQL server'
welche möglichkeit gibt es noch das root password zu setzen bzw. was mache ich falsch ?
Versuchs mal von der Commandline:
Schritt 1: rcmysql stop (als root) Schritt 2: mysqld --user=mysql --skip-networking --skip-grant-tables - --datadir=/var/lib/mysql & Schritt 3: su - mysql -c "mysqladmin --user root password 'NEUESROOTPASSWORT'"
Schritt 4: rcmysql stop Schritt 5: rcmysql start So müsste es klappen.
CU Thorsten
- -- Thorsten Körner | http://www.123tkShop.org openSource e-Commerce | http://www.123tk.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE/rVxAs5R35vLkl/cRAnYyAKCGhTq4oX57lcETT2Uf2ZWTtLVxaQCcDqjV 4K+n+ImiuZ/GMHl0n4BriQU= =rFy4 -----END PGP SIGNATURE-----
Die Benutzerdaten (auch das Passwort) werden in der Datenbank mysql -> Tabelle user gespeichert. Als root hat man Schreibrechte in dieser Tabelle. Ein Neustart des MySQL-Servers ist zum Ändern nicht notwendig. Einfach mit "mysql --user=root" einloggen und die Tabelle entsprechend ändern. Mit mysqlcc (auch bei Suse 9.0 dabei) geht's noch einfacher...
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hallo Christian Am Samstag, 8. November 2003 22:30 schrieb Christian Schramm:
Thorsten Körner schrieb:
Hallo Matthias
Am Samstag, 8. November 2003 22:57 schrieb Matthias Geissler:
Hallo,
ich habe das MySQL packet von derr SuSE 9.0 DVD installiert. Nach eingabe von mysql_install_db steht da ich solle das root Password setzen, allerdings funktioniert das nicht, folgenden fehler krieg ich:
mysqladmin -u root password 'new-password' mysqladmin: connet to server at 'localhost' failed error: 'Access denied for user: 'root@localhost' (Using password: NO)'
mysqladmin -u root -h bianca password 'new-password' mysqladmin: connect to server at 'bianca' failed error: 'Host 'bianca.local' is not allowed to connect to this MySQL server'
welche möglichkeit gibt es noch das root password zu setzen bzw. was mache ich falsch ?
Versuchs mal von der Commandline:
Schritt 1: rcmysql stop (als root) Schritt 2: mysqld --user=mysql --skip-networking --skip-grant-tables - --datadir=/var/lib/mysql & Schritt 3: su - mysql -c "mysqladmin --user root password 'NEUESROOTPASSWORT'"
Schritt 4: rcmysql stop Schritt 5: rcmysql start So müsste es klappen.
CU Thorsten
Die Benutzerdaten (auch das Passwort) werden in der Datenbank mysql -> Tabelle user gespeichert. Als root hat man Schreibrechte in dieser Tabelle. Ein Neustart des MySQL-Servers ist zum Ändern nicht notwendig. Einfach mit "mysql --user=root" einloggen und die Tabelle entsprechend ändern. Mit mysqlcc (auch bei Suse 9.0 dabei) geht's noch einfacher... Ich gehe bei meinem Tipp davon aus, dass er sich nicht mehr auf diese Weise einloggen kann, weil er das passwort nicht mehr hat, oder warum auch immer.
CU Thorsten - -- Thorsten Körner | http://www.123tkShop.org openSource e-Commerce | http://www.123tk.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/rWT6s5R35vLkl/cRAvL0AJ93xnrCINnTWLVGr1uGTan1ytokVACfUla4 0CAsVuMf8KELXBgKtonwXUo= =6qU9 -----END PGP SIGNATURE-----
participants (5)
-
Al Bogner
-
Anca Tibor- Attila
-
Christian Schramm
-
mgeissler@t-online.de
-
Thorsten Körner