I would like to create a user called webapp that can access a database called webdb with the following privileges
Select, Insert, Update, Delete, Create, Drop, References, Index, Alter, Lock_Tables
I created the database like so
mysql -u root -p -e 'create database webdb'
How is such a user created from the commandline?
Something like this:
Second statement will grant privileges on
webdbdatabase.