Au 2014-03-31, MariaDB lance sa nouvelle version stable : MariaDB 10.0.10

Les commandes client mysql/mariadb

Par exemple pour le lancer sans la complétion et avec demande du mot de passe, mysql --no-auto-rehash -p

Pour changer le prompt :

MariaDB [(none)]> prompt MariaDB>
PROMPT set to 'MariaDB> '
MariaDB>
PROMPT \U >
root@localhost >

Et le \G pour voir les résultat en colonne au lieu de lignes :

MariaDB> SELECT VERSION();
+-------------------+
| VERSION()         |
+-------------------+
| 10.0.16-MariaDB-1 |
+-------------------+
1 row in set (0.01 sec)

MariaDB> SELECT VERSION()\G
*************************** 1. row ***************************
VERSION(): 10.0.16-MariaDB-1
1 row in set (0.00 sec)

Mot de passe MariaDB root perdu, changer son mot de passe administrateur

Rajouter "skip-grant-tables" dans la section "mysqld" de la configuration "F:\MariaDB 10.0\data\my.ini"

[mysqld]
skip-grant-tables

Relancer le service MariaDB.

Connectez vous : mysql --port=3310, pour changer le mot de passe :

use mysql;
update user set password=PASSWORD("mariadb") where User='root';
flush privileges;
exit;

Commenter "skip-grant-tables" avec un "#", et relancer votre service.

Vous pourrez vous reconnecter avec votre compte root correctement authentifié :

F:\MariaDB 10.0\bin>.\mysql \--user=root \--port=3310 -p
Enter password: mariadb
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 4
Server version: 10.0.10-MariaDB mariadb.org binary distribution

Copyright (c) 2000, 2014, Oracle, SkySQL Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB \[(none)\]>

Ressources