CertGrid CertGrid
Hands-on Lab·MySQL

MySQL User Accounts

A new account can connect and can see almost nothing. That gap - authenticated but unauthorised - is the whole privilege model in one step, and `ERROR 1044` is what it sounds like.

Users and Privileges Guide 16 of 45 Beginner

Written against the versions above. `caching_sha2_password` is the 8.0+ default plugin. Older clients that only speak `mysql_native_password` need either an upgrade or an explicit plugin on the account.

Every command on this page ran on db-a01.
Server NameIP AddressOSRolesCPURAMHDD
db-a01192.168.0.81Ubuntu 26.04 LTSPrimary / Source / Replica Set Member 12 Core4 GB50 GB

Before you start

  1. Create an account and read the row it produced

  2. Connect as it, and see how little it can reach

  3. Try to use a database it has no grant on

Official sources