i have set my database like this
DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=test123
DB_USERNAME=root
DB_PASSWORD=16011996
in my .env
but when i run php artisan migrate i got error something like this
Illuminate\Database\QueryException : SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client (SQL: select * from information_schema.tables where table_schema = test123 and table_name = migrations and table_type = 'BASE TABLE')
i have setup in my mysql about the schema_table using test123 but there is still error like that. how to fix it. i also try using 127.0.0.1 and using localhost but still got an error
that error is when i use mysql 8.0
i also have set the user as alter user using this code
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '16011996';
Query OK, 0 rows affected (0.01 sec)
and it is oke but i still got error like that