freebsd:db:mysql_tips

MySQLメモ

パスワード変更

SET PASSWORD FOR 'username'@'hostname' = PASSWORD('password');

ユーザー削除

DROP USER 'username'@'hostname';

ユーザー情報取得 mysql.userからSELECTする

> SELECT user,host,password FROM mysql.user;
+------------+-----------+-------------------------------------------+
| user       | host      | password                                  |
+------------+-----------+-------------------------------------------+
| root       | localhost | *xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
| root       | 127.0.0.1 | *xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
| root       | ::1       | *xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
+------------+-----------+-------------------------------------------+
11 rows in set (0.001 sec)
  • freebsd/db/mysql_tips.txt
  • 最終更新: 2020-12-03 19:35
  • by Decomo