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

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

This guide includes

Use this when a new account has to exist before it can do anything. This matters because CREATE USER makes an identity and nothing else - it can connect and see almost nothing, which is the correct place to start.

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