MySQL Commands

  1. Login:
  2. Show password policy:
  3. Show all databases
  4. Backup DB:
  5. Import DB:
  6. Create a new user:

    Note:

    1. ‘user’@’localhost’ 後面的localhost是指可以存取DB的IP,不是DB server的IP
    2. yourpassword不需要填加密的,直接用明碼就可以了
    3. ‘10.0.1.%’ could be replaced with ‘localhost’
      Password generator: https://www.browserling.com/tools/mysql-password

Creating an user with adminer:

  • 如果要讓user透過adminer登入,目前測試server欄位是一定要填%

Referece:

  1. https://www.opencli.com/mysql/mysql-add-new-users-databases-privileges