I am facing a problem linking my MySQL database to Userfrosting. The guide gives an example of adding a .enr
file to the directory so that Userfrosting can read the database credentials, but it doesn't seem to work.
Can someone give me an in-depth tutorial on how to do it?
Here is the error code when running install.php
:
Could not connect to the database '@/'. Please check your database
configuration and/or google the exception shown below:
Exception: SQLSTATE[HY000] [2002] No such file or directory
Trace:
#0 /Applications/XAMPP/xamppfiles/htdocs/myUserFrostingProject/migrations/install.php(63): PDO->__construct('mysql:host=;dbn...', NULL, NULL)
#1 {main}