DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=task
DB_USERNAME=root
DB_PASSWORD=******
List of all databases
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| nodeDB |
| performance_schema |
| phpmyadmin |
| pythonDB |
| sys |
| task |
+--------------------+
8 rows in set (0.13 sec)
Already tried these solutions
SQLSTATE[HY000] [1045] Access denied for user 'username'@'localhost' (using password: YES)
Access Denied for User 'root'@'localhost' (using password: YES) - No Privileges?
task
? Also please check the username and password are correct and valid. – Harish STmysql -u root -p
and Enter Password. Check the credentials are actually valid. – Harish ST