How To Create a New User and Grant Permissions in MySQL
Introduction MySQL is an open-source database management software that helps users store, organize, and later retrieve data. It has a variety of options to grant specific users nuanced permissions within the tables and databases—this tutorial will give a short overview of a few of the many options. What the Highlights Mean Throughout this tutorial, any lines that the user needs to enter or customize will be highlighted ! The rest should mostly be copy-and-pastable. How to Create a New User In Part 1 of the MySQL Tutorial , we did all of the editing in MySQL as the root user, with full access to all of the databases. However, in cases where more restrictions may be required, there are ways to create users with custom permissions. Let’s start by making a new user within the MySQL shell: CREATE USER ' newuser '@'localhost' IDENTIFIED BY ' password '; Note: When adding users within the MySQL shell in this tutorial, we will specify the u...