Can I enter MySQL prompt then run sql lazarus / 21-General ---------------------------------------------------------------------- nikel · 2026-05-16 19:51 Hello, I'm planning to develop a Linux console program which would run another program then send its commands, then get the output. Is this possible? ---------------------------------------------------------------------- tooknox · 2026-05-16 20:05 TProcess + poUsePipes should do the job, but I don't think it's a good idea for mysql, there is a dedicated library for mysql (and you would know that). May be if you provided more details. Also there would be the whole headache of managing credentials (properly) ---------------------------------------------------------------------- nikel · 2026-05-17 13:41 Thank you for your explanation. ---------------------------------------------------------------------- Zvoni · 2026-05-18 06:50 Quote from: tooknox on May 16, 2026, 10:05:08 pmTProcess + poUsePipes should do the job, but I don't think it's a good idea for mysql, there is a dedicated library for mysql (and you would know that). May be if you provided more details. Also there would be the whole headache of managing credentials (properly) Yepp. Why in blazes calling the command-line client for MySQL, passing it parameters, then reading the output? Having the MySQL CLI-Client installed means you have the client-libs, and the CLI just calls the same functions/procedures you can call yourself using the correct classes