โ CORRECT FIX (DO THIS EXACTLY)
๐น Step 1: Stay logged in as root (you already are)
You should see:
๐น Step 2: FIRST create the user
โ ๏ธ This step is mandatory
โ If successful, youโll see:
๐น Step 3: NOW grant CREATE DATABASE permission
๐น Step 4: (Optional but useful) Allow full DB control
๐น Step 5: Verify
You MUST see:
๐น Step 6: Exit MySQL
โ FINAL STEP: phpMyAdmin
-
Logout from phpMyAdmin
-
Login again using:
-
Open Databases
๐ โNo Privilegesโ WILL BE GONE
๐ Create database option ENABLED
๐ BEST PRACTICE (IMPORTANT)
For production servers:
-
โ Do NOT give
ALL PRIVILEGES ON *.* -
โ Give access only to required DB
Example (secure):
If you want, I can:
-
๐ Secure MySQL properly
-
๐ข Create WordPress-ready DB & user
-
๐งน Remove phpMyAdmin warnings
-
๐ Enable HTTPS (remove โNot Secureโ)