Re: PyDO MySQL connect string
Jacob Smullyan <[email protected]> Sun, 15 May 2005 23:48:57 -0400
| Newsgroups | gmane.comp.web.skunkweb |
|---|---|
| Message-ID | <[email protected]> |
On Mon, May 16, 2005 at 09:05:50AM +1000, Steve Kieu wrote:
>
> Hi,
>
> From PyDO Doc.
>
> For MySQL, they can take one of a few forms:
>
> pydo:mysql:normal_mysql_connect_string
>
> and it did not describe in details how the
> normal_mysql_connect_string would be. And no example.
>
> I have tried:
> DBIInitAlias('customer','pydo:mysql:host=10.0.44.12
> user=pacificbb passwd=pacificbb05 db=pacificbb)
>
> with no sucess, Several other attempts failled too.
>
> Pls help.
If you look at PyDO.mysqlconn, you'll see that a connectstring like
'host:user:db:passwd:cacheUser:verbose' should work, where the last
two (or even three) are optional.
> And one comment is that, skunkweb and pydo is excelent
> product but sometimes documentation is not as good as
> the software (a bit in complete). Hope that I can
> gather all usefull docs somewhere for faster start up
> person like me. (no I do not want to read the source
> code to figure out how to form a connect string,
> rather than doing it, I use another more well
> documented method or switch...)
You are quite right about the documentation; it was never completed
for skunk as a whole and has not been maintained. However, I am
making an effort in new work, such as the rewrite of PyDO (PyDO2), to
keep the documentation thorough and up-to-date. For PyDO in
particular, I suggest you consider using the new version. The
refactoring and redocumenting process is being gradually extended to
skunkweb as a whole.
Cheers,
js
--
Jacob Smullyan
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFCiBgpuqamFyFXXLIRAnHjAKC0Zd6h8jWRYhNY5C19z/L5T1VY/ACff37u S/1kx4hTR/JgaoFXB1WV6tw= =ViJW -----END PGP SIGNATURE-----