I'm trying to get a local development environment setup on my windows machine using valet for windows. It works as intended for laravel and standard applications, but not for installing wordpress. It returns a fatal error.
I'm running php version 7.2.22, laravel valet for windows 2.1.1, mysql version 8.0 and wordpress version 5.2.3. I am trying to move away from a MAMP setup and therefore have gone through the process of setting up valet for windows.
I have checked that the credentials I have provided for the local database are correct, mysql is using port 3306, port 80 is free for valet to use.
After providing the details of my local database (which worked just fine in my MAMP setup) in my wp-config.php file, I try and go through the installation stage, and after I have entered all the correct credentials I receive the following error:
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\Users\...
Now from my understanding and from prior researching, mysql_connect() has been deprecated since php5, however I thought wordpress provided a fallback for this in case people were using 7.2. I am using wordpress version 5.2.3.