Re: edbi + mysql + linux missing driver and password question
- Posted by jimcbrown (admin) Jan 10, 2011
- 1432 views
Anthill said...
I also have a question about a database password, if it has a ':' in it will it work as in:
edbi:open("mysql://dbuser:my_password_with_a:@localhost?dbname=mydb")
Thanks for your help.
edbi passed the connection string directly to the driver. The sqlite3 driver passes it directly to the sqlite3 library unmodified. So if the sqlite3 library can handle it, then it'll work.
The mysql driver for edbi parses the string directly using std/net/url.e's url:parse(). My test code shows that url:parse() returns the password correctly (with a ':'), so mysql should work fine.
include std/net/url.e sequence s = url:parse("mysql://dbuser:my_password_with_a:@localhost?dbname=mydb") puts(1, s[URL_PASSWORD])