To create a new user in MySQL, follow these steps after logging into the MySQL prompt as root:
✅ Step-by-Step: Create a New User in MySQL
1. Login to MySQL
Enter the root password when prompted.
2. Create the User
✅ Example:
3. Grant Permissions
You can grant full privileges on a database like this:
✅ Example:
If the database doesn't exist yet:
4. Apply Changes
✅ Verify:
Let me know if you'd like to grant only read access, create the user for remote access, or anything more specific.
No comments:
Post a Comment