ユーザ用ツール

サイト用ツール


サイドバー


メニュー




スポンサーリンク





mysql:管理:ユーザー管理

MySql:管理:ユーザー管理

データベースへの接続

例)ルートユーザーでログインする

$>mysql -u root -p
Enter password:パスワード

ユーザ情報の表示

登録されているユーザー一覧の表示

select * from mysql.user ¥G;

登録されているユーザー一覧の表示(ユーザー名,ホスト名)

select User,Host from mysql.user;

登録されている特定のユーザーの表示

select * from mysql.user where user='ユーザー名' ¥G;

ユーザの登録

ユーザの削除

drop user ユーザー名;
mysql/管理/ユーザー管理.txt · 最終更新: 2015/12/08 01:55 by dokuroot