Page 1 of 1
How to enumerate databases?
Posted: 10.08.2007, 22:42
by piggles
How can I get a list of mysql databases to put in a stringlist so a user can choose one?
Posted: 11.08.2007, 20:21
by mdaems
Try TZConnection.GetCatalogNames ( TStrings List ) or TZConnection::GetSchemaNames (TStrings List )
Not sure which of both works for mysql. Of course, you'll have to connect to the server first.
Also : make sure the user you connect with has sufficient rights to see other databases!!
Mark
Posted: 13.08.2007, 22:23
by piggles
Thank you! Get CatalogNames is the one.