[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Root dla mysql



----- Original Message -----
From: "Bogusław Olszewski" <bogus@netpol.one.pl>
To: "debian-user-polish" <debian-user-polish@lists.debian.org>
Sent: Tuesday, February 11, 2003 8:22 AM
Subject: Root dla mysql


> Witam,
>
> Od jakiegoś czasu mam problem, który umarł nie roziwązany na innej
> liście. Jak odzyskać zapomniane hasło roota w mysql mając roota w
> systemie?
>
> --
> Pozdrowienia,
>  B.O.                          mailto:bogus@netpol.one.pl
>
>
>
> --
> To UNSUBSCRIBE, email to debian-user-polish-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
listmaster@lists.debian.org
>

Hail.

a.. login as unix root
a.. stop mysqld (/etc/init.d/mysqld stop)
a.. start mysqld (/usr/bin/safe_mysqld --skip-grant-tables)
a.. login into the mysql server (mysql -u root mysql)
a.. change the root password (update user set
password=password('new_password') where user='root';)
a.. flush the privileges for the change to take effect (flush privileges;)
a.. exit the database (quit)
a.. stop the database (might need to kill the process)
a.. restart the database as normal (/etc/init.d/mysqld start)

a ode mnie: jesli 3 linijka bedzie sprawiac problemy, po prostu odpal
/etc/init.d/mysql start --skip-grant-tables
w linijce przedostatniej jesli nie chce sie stopnac uzyj kill (nr) a nie
kill -9 (nr)

kilka razy juz to robilem i zawsze dziala.

pozdrawiam

Mako



Reply to: