Skip to content

Instantly share code, notes, and snippets.

@ychaouche
Created September 12, 2024 09:52
Show Gist options
  • Save ychaouche/87afdc7786f3ee98a884152f674b13c8 to your computer and use it in GitHub Desktop.
Save ychaouche/87afdc7786f3ee98a884152f674b13c8 to your computer and use it in GitHub Desktop.
root@messagerie-recup[10.10.10.20] ~ # mysql
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 52
Server version: 10.11.4-MariaDB-1~deb12u1 Debian 12
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> SET PASSWORD FOR 'root'@'localhost' = PASSWORD("xxx");
Query OK, 0 rows affected (0.052 sec)
MariaDB [(none)]> FLUSH PRIVILEGES
-> ;
Query OK, 0 rows affected (0.051 sec)
MariaDB [(none)]> exit
Bye
root@messagerie-recup[10.10.10.20] ~ # mysql
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 53
Server version: 10.11.4-MariaDB-1~deb12u1 Debian 12
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> ^DBye
root@messagerie-recup[10.10.10.20] ~ #
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment