One of the first tasks when setting up a new MySQL server is
  creating users and granting them permissions, or giving them the
  ability to do stuff in MySQL. By default, a single user, the root
  user, is created when you setup MySQL. This user is granted all
  privileges on the entire system, which means you should create
  separate logins for administrators and applications. Let’s walk
  through all the basic steps you need to create a new user and
  give them permissions.
  Create a User
  The first command I’ll show you is pretty simple:
Create User bob@'%' Identified By 'Astr0ngPhr@$e';
  Before we move on, let’s check that user’s permissions:
Show Grants for bob@'%';
  Which should show something like:
+----------------------------------------------------------------------------------------------------+
| Grants for bob@% …
[Read more]