Attendance Management System is a Laravel based web application which keeps track of employee hours by either using ZKTecho finger print device or manual attendance sheet.
Assalam o Alikum SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it (SQL: insert into users (name, email, password, updated_at, created_at) values (Admin, admin@ams.com, $2y$10$4A.8uZbRJ9qu1FWPKFZ0qOgVXOPEuNtHzp2491P9WUuaUSCZ7QfXC, 2022-08-19 11:40:16, 2022-08-19 11:40:16))
Solution:
Go to config/database.php, look for this 'port' => env('DB_PORT', '3306'),
then you take the port number then you copy paste in your .env file DB_PORT=3306
Assalam o Alikum SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it (SQL: insert into
users
(name
,email
,password
,updated_at
,created_at
) values (Admin, admin@ams.com, $2y$10$4A.8uZbRJ9qu1FWPKFZ0qOgVXOPEuNtHzp2491P9WUuaUSCZ7QfXC, 2022-08-19 11:40:16, 2022-08-19 11:40:16))