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?
Direct access to MySQL console
Moderators: gto, cipto_kh, EgonHugeist
-
- Platinum Boarder
- Posts: 1956
- Joined: 17.01.2011, 14:17
Re: Direct access to MySQL console
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
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