「Windows10」MySQLコマンドの実行方法

2021年9月8日

書式
mysql> コマンド名;
使用例
1.stausコマンド

mysql> status
--------------
mysql Ver 8.0.26 for Win64 on x86_64 (MySQL Community Server - GPL)

Connection id: 8
Current database:
Current user: root@localhost
SSL: Cipher in use is TLS_AES_256_GCM_SHA384
略

2.helpコマンド

mysql> help

List of all MySQL commands:
Note that all text commands must be first on line and end with ';'
? (\?) Synonym for `help'.
clear (\c) Clear the current input statement.
connect (\r) Reconnect to the server. Optional arguments are db and host.
delimiter (\d) Set statement delimiter.
ego (\G) Send command to mysql server, display result vertically.
略

3.useコマンド
mysql> use world
Database changed

4.quitコマンド

mysql> quit
Bye

MySQL

Posted by arkgame