Re: edbi + mysql + linux missing driver and password question

new topic     » goto parent     » topic index » view thread      » older message » newer message
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]) 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu