when i try to register through the register form throws this error:
Fatal error: Uncaught PDOException: PDO::__construct(): The server requested authentication method unknown to the client [caching_sha2_password] in /Applications/Ampps/www/database.php:8 Stack trace: #0 /Applications/Ampps/www/database.php(8): PDO->__construct('mysql:host=loca...', 'iek', '123') #1 /Applications/Ampps/www/myfuncs.php(2): require_once('/Applications/A...') #2 /Applications/AMPPS/www/login.php(3): require_once('/Applications/A...') #3 {main} Next PDOException: SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client in /Applications/Ampps/www/database.php:8 Stack trace: #0 /Applications/Ampps/www/database.php(8): PDO->__construct('mysql:host=loca...', 'iek', '123') #1 /Applications/Ampps/www/myfuncs.php(2): require_once('/Applications/A...') #2 /Applications/AMPPS/www/login.php(3): require_once('/Applications/A...') #3 {main} thrown in /Applications/Ampps/www/database.php on line 8
I use the following files: create_database.sql, register.php, login.php, myfuncs.php, and database.php Please help I have make it work!! thanks in advance