Welcome Guest, Not a member yet? Register   Sign In
Connecting to database using DSN with @ symbol in the password
#1

[eluser]Unknown[/eluser]
I'm connecting to a database using the dsn notation:

driver://username:password@localhost/database

which works fine until I have a database with an @ symbol in the password at which point CI gives me a "could not translate host name" message.

Is there a notation for escaping the @ symbol or delimiting the beginning/ending of the password section?




Theme © iAndrew 2016 - Forum software by © MyBB