LoginSignup
3
0

More than 5 years have passed since last update.

mariadb mysql パスワード変更(過去に作ったやつを使いたい時)

Last updated at Posted at 2018-02-13

いつか作っていたユーザを確認。

MariaDB [(none)]> select user, host from mysql.user;

権限を確認

MariaDB [(none)]> show grants for 'username'@'localhost';

パスワード変更

MariaDB [(none)]> set password for 'username'@'localhost' = password('pass');

これで過去に作ってpasswordがわからなくなったやつをまた使えます。

3
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
3
0