MySQL @Wiki 実用リファレンス

接続

最終更新:

my-sql

- view
管理者のみ編集可

サーバへの接続

サーバへ接続します。
shell> mysql -h ホスト名 -u ユーザ名 -p
Enter password: ********
※ ******** にはパスワードを入力してください。

例)
Shell>mysql -h localhost -u root -p
Enter password: ********
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 25338 to server version: 4.0.14-log

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>



サーバからの切断

サーバから切断します。
mysql> QUIT
Bye


記事メニュー
ウィキ募集バナー