[Lazarus] Getting MySQL process output

Michael Van Canneyt michael at freepascal.org
Sat Dec 5 18:31:11 CET 2015



On Sat, 5 Dec 2015, Aradeonas wrote:

>> What is the -WG param ? I could not find it in the documentation.
> Win32 GUI application in compiler option> conf and target
>> If you are afraid that it will be visible in the task list, just set
>> the MYSQL_PWD and USER environment variables in TProcess.
> Good point.
>> All in all, I suspect you would probably be better off using the mysql
>> library.
> The mysql command is just a front-end to that. As I said in my first
> question is not just a MySQL problem, for this case I need to connect to
> mysql cmd not library and for that I need to communicate with it and
> write SQl query and send and then receive the result. I just dont know
> how read its output,its not like a simple CMD program that you run and
> get the output simply.

Did you use the poNoConsole option ?

Michael.




More information about the Lazarus mailing list