Direct access to MySQL console

Forum related to MySQL

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
aradeonas
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: 19.02.2016, 13:29

Direct access to MySQL console

Post 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?
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1956
Joined: 17.01.2011, 14:17

Re: Direct access to MySQL console

Post 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
Post Reply