LoginSignup
0
1

More than 5 years have passed since last update.

ローカル環境でmysqlを使ってみる

Last updated at Posted at 2018-07-15

mysqlサーバーが動いているかの確認

$ sudo service mysqld status

mysqlサーバーに接続

 $ mysql -u root

使えるコマンド表示

> help;

画面のクリア

> (ctrlキー)+ L

現在のユーザーを表示

> select user();

☆mysqlでは終わりに;(セミコロン)を付けて命令終了

前のコマンドを取り消して、次のコマンドを打つ時

\c

mysqlへの接続を解除(どっちもOK)

>quit:
>\q
0
1
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
1