[Qt-interest] QProcess and mysqldump

Thiago Macieira thiago at kde.org
Thu Nov 18 19:31:15 CET 2010


On Thursday, 18 de November de 2010 19:03:56 David Villalobos Cambronero 
wrote:
> Thanks for your reply, the exit code of mysqldump is 2.
> 
> I change the order of proc->waitForFinished(-1); and correct the password,
> and the exit code is still 2
> 
>   QStringList arguments;
>   arguments << " --user=root";
>   arguments << " --password=david123";
>   arguments << " --host=localhost";
>   arguments << " --result-file=/home/david/tmpDavid.sql";
>   proc->setReadChannel(QProcess::StandardOutput);
>   proc->start("mysqldump", arguments);
>   proc->waitForFinished(-1);

Then find out why mysqldump exited with an error code. Check what it printed to 
the standard error.
-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101118/c6729326/attachment.bin 


More information about the Qt-interest-old mailing list