0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Mysql リファレンス

Posted at

自分が学習していて主につまずいたこと、忘れないようにするための備忘録。
スペック rails 5.0.6

起動
$ sudo service mysqld start
起動状況確認
$ sudo service mysqld status
停止
$ sudo service mysqld start

Mysqlへ接続
$ mysql -u root
切断
mysql> exit
データベース一覧の確認
mysql> SHOW databases;

データベースの作成
mysql> CREATEデータベース名;

データベースの削除
mysql> DESTROYデータベース名;

操作したいデータベースを選ぶ
mysql> USE データベース名;

テーブルの中身を確認
mysql> describe テーブル名;

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?