/*4. How to grant a user permission to create, insert, update, delete and create temporary tables from localhost. */ /*Syntax : grant [|] on [database].[|] to [user name]@[||] identified by ["password"]; */ grant select, create, insert, update, delete, create temporary tables on posts.* to amit@localhost identified by 'mypassword'; flush privileges;