Dienstag, 21. Januar 2020

Reset the MariaDB Root Password

mysql --version

sudo systemctl stop mariadb

sudo systemctl set-environment MYSQLD_OPTS="--skip-grant-tables --skip-networking"

sudo systemctl start mariadb

sudo systemctl status mariadb.

sudo mysql -u root

FLUSH PRIVILEGES;


use mysql;

UPDATE mysql.user SET password = PASSWORD('new_password') WHERE user = 'root';
UPDATE mysql.user SET authentication_string = '' WHERE user = 'root';
UPDATE mysql.user SET plugin = '' WHERE user = 'root';
FLUSH PRIVILEGES;


exit




 

 flush privileges;

Keine Kommentare:

Kommentar veröffentlichen

Hinweis: Nur ein Mitglied dieses Blogs kann Kommentare posten.

Auf der Intensivstation - Abteilung VIPs und Privatpatien

Der Führer des Ku-Klux-Klan liegt auf der Intensivstation in Dallas, Texas im Sterben Um ihn herum, die komplette oberste Führungsebene des ...