Page 1 of 1

Direct access to MySQL console

Posted: 21.02.2016, 20:47
by aradeonas
Hi,

Is there a way to direct access to MySQL console?
For example send "Use database" and get result "Database changed " from Mysql like when you use Mysql service from command line or terminal?

Re: Direct access to MySQL console

Posted: 25.02.2016, 09:45
by marsupilami
Hello aradeonas,

I assume your use case is not possible with Zeos right now. There is some possibility at the DBC level of Zeos to pass Warnings - and in this way also messages - from the server to your code. But it seems that the Zeos MySQL driver doesn't implement that. If you want to see if it is worth your time to try to implement it, you could check the function TZDbcConnection.GetWarnings and try to get a working implementation for MySQL. If you have any questions don't hesitate to let me know.

With best regards,

Jan