Use one of the following commands to grant ALL PRIVILEGES to a MySQL
user: All databases, All table
GRANT ALL PRIVILEGES ON database_name.* TO 'username''@'localhost';GRANT ALL PRIVILEGES ON database_name.table_name TO 'username'@'localhost';ALTER USER 'root'@'localhost' IDENTIFIED BY '1234';
flush privileges;Last updated