Welcome Guest, Not a member yet? Register   Sign In
azure installation for ci4
#1

hi!
i'm trying to setup a codeigniter 4 app in azure, until now i have the code from bitbucket and according to debug it works except for the route with public/
but...
it's been impossible to connect with azure mysql database, it says unable to connect and looks like it can't find the mysql server, can you help me with that?
for now the error that shows the page is the next one:
PDOException #2002
SQLSTATE[HY000] [2002] No such file or directory

in the .env file i have the next configuration
database.default.hostname = database-server.mysql.database.azure.com
database.default.database = databasename
database.default.username = databaseusername
database.default.password = databasepass
database.default.DBDriver = mysqli
database.default.DSN = 'mysql:dbname=databasename;host:database-server.mysql.database.azure.com'
Reply




Theme © iAndrew 2016 - Forum software by © MyBB