I would like to create a user called webapp who can access a database called webdb with the following privileges
Select, Insert, Update, Delete, Create, Drop, References, Index, Alter, Lock_Tables
I created such a database
mysql -u root -p -e 'create database webdb'
How is such a user created from the command line?
source share