LoginSignup
0
0

More than 5 years have passed since last update.

Mysqlのコマンド

Last updated at Posted at 2018-03-21

■ 起動
mysql.server start
mysql -u (ユーザー名)

mysql -u user -p ※パスワード設定している場合

■ データベースを切り替えるコマンド
use (データベース名)

■ データベースの中身の確認
show databases;

■ テーブルの中身の確認
show tables;

select * from test;

■ インサート
INSERT INTO test (test1, test2) VALUES (value1, value2);

0
0
0

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
0
0