4
5

More than 5 years have passed since last update.

Mysql コマンド一覧

Last updated at Posted at 2013-12-03

Mysql起動

mysql.server start

Mysql再起動

mysql.server restart

Mysqlストップ

mysql.server stop

データベースの一覧を見る

SHOW DATABASES;

Datebaseを作る

CREATE DATABASE データベース名;

Datebaseを削除する

DROP DATABASE データベース名;

データベースの選択

USE データベース名;

ユーザー確認

SELECT host,user FROM mysql.user;

特定のデータベースを入れる

mysql -u root データベース名 < dump.sql(SQL名) 
4
5
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
4
5