Anzeige:
Ergebnis 1 bis 3 von 3

Thema: mysql access denied HILFE DRINGEND !

  1. #1
    Gast

    Angry mysql access denied HILFE DRINGEND !

    hallo zusammen,
    ich habe mysql auf einem linuxrechner installiert und verwalte den rechner mit
    webmin. ich habe aber leider den root
    access aus versehen gelöscht bzw. den
    root@localhost. wie kann ich das wieder rückgängig machen ? einfach neu installieren
    auch mit neuen versionen hilft da nicht .

  2. #2
    Gast

    Post

    Hi,

    vielleicht kann dir dieser Link weiterhelfen:
    http://www-medlib.med.utah.edu/medstat_ops/node74.html

    ------
    Zitat:

    I Can't Get In To MySQL As root, How Can I Recover?

    If you have forgotten the MySQL root password, or the mysql database is trashed, it is possible to restart the MySQL server in a mode that lets anyone
    in.

    CAUTION: THIS INCLUDES ANYONE WHO CAN REACH THE SERVER FROM THE INTERNET! CAREFULLY CONSIDER THE SECURITY
    IMPLICATIONS BEFORE DOING THE FOLLOWING!

    As Unix root, stop the MySQL server daemon. If the mysql database is trashed, recover it according to the instructions in Chapter 13, `Using isamchk
    for table maintenance and crash recovery' in the MySQL documentation. Then restart mysqld with the --skip-grant-tables command line option.
    Set a new password, then flush privileges to put the new password into effect:

    medstat 1% su
    Password:
    # sh /usr/local/mysql/support-files/mysql.server stop
    Killing mysqld with pid nnn
    # /usr/local/mysql/bin/safe_mysqld --user=root --pid-file=/usr/local/mysql/data/mysqld.pid
    --skip-grant-tables &
    Starting mysqld daemon with databases from /usr/local/mysql/data
    # exit
    medstat 2% /usr/local/mysql/bin/mysql -u root mysql
    Welcome to the MySQL monitor....
    ...
    mysql> update user set password=password('newpass') where
    -> User='root' and Host='localhost';
    mysql> flush privileges;

    ---Zitat Ende---

    Gruss
    wd

  3. #3
    Gast

    Exclamation

    danke für den tip, aber das funktioniert leider nicht. der server hat auch keine
    pid file angelegt.
    gibts vielleicht eine möglichkeit alle
    daten zu löschen ? also restlos und das
    ganze neu zu installieren ....

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •