Recent

Author Topic: Lazarus  (Read 3198 times)

lzCheetah

  • Newbie
  • Posts: 2
Lazarus
« on: November 13, 2011, 09:31:59 pm »
Hello,

I use Lazarus 0.9.30 under Mandriva Linux 32 bits 2010.2. I connect to my local MySQL test database. Can I use some component to get dump of my MySQL database ? I don't want to write the code for dumping from scratch if it is possible..

IndianaJones

  • Hero Member
  • *****
  • Posts: 509
Re: Lazarus
« Reply #1 on: November 13, 2011, 10:00:17 pm »

Have a look at this page to execute external applications. http://wiki.lazarus.freepascal.org/Executing_External_Programs
Then you can dump your database with this command.
mysqldump -u USER -pPASSWORD DBNAME > example.sql
But there could be another way to dump your database.
Thanks.

lzCheetah

  • Newbie
  • Posts: 2
Re: Lazarus
« Reply #2 on: November 13, 2011, 11:33:37 pm »
Тhank you very much.
It's a nice solution :)
But I don't want to use external application.
It shoud be part of my application like a some
suitable component doing the work.


IndianaJones

  • Hero Member
  • *****
  • Posts: 509
Re: Lazarus
« Reply #3 on: November 14, 2011, 08:26:00 am »

 

TinyPortal © 2005-2018