Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

Default addr for network 'localhost' unknown #25

Closed
tomtom87 opened this issue Oct 5, 2015 · 1 comment
Closed

Default addr for network 'localhost' unknown #25

tomtom87 opened this issue Oct 5, 2015 · 1 comment

Comments

@tomtom87
Copy link

tomtom87 commented Oct 5, 2015

Trying to connect to mysql with the following in app.json

        "database": "mysql",
        "database_conn": "mysql://utron:pass@localhost/utron_todo"

Loggin into the mysql terminal from promp with the credentials is fine and working in PHP also. Any ideas?

@tomtom87
Copy link
Author

tomtom87 commented Oct 5, 2015

Incorrect format this wants DSN same as PEAR DB (http://pear.php.net/manual/en/package.database.db.intro-dsn.php)

So correct format is user:password@unix(/path/to/socket)/dbname
or user:password@tcp(localhost/mysql)/dbname

Currently working now

@tomtom87 tomtom87 closed this as completed Oct 5, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant