Mysql create Database and give permission to user to access and write privilege.
Login in mysql command mysql -u root -p Create database command CREATE DATABASE m2; Grant privilege GRANT ALL PRIVILEGES ON m2.* TO ‘root’@’localhost’; Puneet Kumar Magento Developer