In this tutorial we are going to solve error SQLSTATE[HY000] [2002] No such file or directory (Connection: mysql, SQL: insert into oauth_clients
(user_id
, name
, secret
error: –
SQLSTATE[HY000] [2002] No such file or directory (Connection: mysql, SQL: insert into `oauth_clients` (`user_id`, `name`, `secret`
Solution :-
DB_SOCKET=/opt/lampp/var/mysql/mysql.sock
Next run below command
php artisan c:cache
php artisan passport:install
php artisan passport:install