mysql
mySQL
Commande
~# apt-get install
Le programme d'installation demande le mot de passe de l'utilisateur root.
Contrôle
~# mysql -u root -pazerty mysql Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 47 Server version: 5.5.44-0+deb8u1 (Debian) Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> select host,user from user; +-----------------+------------------+ | host | user | +-----------------+------------------+ | 127.0.0.1 | root | | ::1 | root | | localhost | debian-sys-maint | | localhost | root | +-----------------+------------------+ 4 rows in set (0.00 sec) mysql> quit Bye ~#
Noter l'absence de blanc entre -p et le mot de passe.
“mysql” est le nom de la base de données interne à mySQL.
mysql.txt · Dernière modification : 2023/07/04 10:55 de 127.0.0.1