Quote:
Originally Posted by M@shkin
Ich weis, deswegen ja! Erstmal alle User-Daten löschen um sicher zu gehen, dass sich keine Folge-Fehler einschleichen. Beim Start von MySQL sollten dann alle Standard-Datenbanken neu angelegt werden.
@Seele:
Nachdem du das MySQL-Verzeichnis gelöscht hast und den Server neu gestartet hast, müsstest du dich vom Server selbst mit dem vorher genannten Befehl anmelden könne.
Ist das nicht der Fall, liegt hier auf jeden Fall ein ernsteres Problem vor.
Sollte das allerdings klappen, müsstest du mit folgendem Befehl Berechtigungen für root von allen Hosts aus geben können:
Code:
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'passwort';
wobei du passwort durch ein ordentliches Passwort ersetzen solltest.
Auf jeden Fall solltest du das Semikolon nicht vergessen!
|
Okay ich versuche es jetzt. Aber wo soll ich diesen einen Befehl mit der Ip 127.0.0.0 eingeben? In PuTTy dann?
Und hast du zufällig Skype/icq etc.?
Edit : Habe es jetzt mal versucht Fehler codes :
j049# /usr/local/etc/rc.d/mysql-server stop
Stopping mysql.
Waiting for PIDS: 33839.
j049# rm -R /var/db/mysql
j049# /usr/local/etc/rc.d/mysql-server start
Starting mysql.
j049# mysql -u root -h localhost mysql
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.1.58 FreeBSD port: mysql-server-5.1.58
Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> On Unix, each root account permits connections from the local host. Conne ctions can be made by specifying the host name localhost, the IP address 127.0.0 .1
-> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'passwort';
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'On Un ix, each root account permits connections from the local host. Connections ' at line 1