LoginSignup
1
0

More than 3 years have passed since last update.

MySQLのコマンドメモ

Last updated at Posted at 2019-09-06

よく使用するMySQLのコマンドのメモ

ログインの時

$ mysql -u "ユーザー名" -p

データベース作成

mysql> CREATE DATABASE データベース名;

データベース一覧

mysql> SHOW DATABASES;

テーブルを使用する

mysql> USE "データベース名"

テーブル一覧

mysql> SHOW TABLES;

ユーザー権限を作成

mysql> grant all on *.* to 'ユーザー名'@"%" identified by 'パスワード';
1
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0