Page 1 of 1

how to create MySql, Oracle and SqLite database's

Posted: Mon 15 Dec 2014 18:39
by dragonstar
Using Unidac I'm curious if there's any way to create a MySql, Oracle and SqLite database.

So if I have Oracle installed can I create a new DB with all the default shemas, tables and data rows present?

Same question for MySql if I have MySql server installer.

And again for SqLite if I have the .dll in hand.

For all 3 of the above, if it's possible can someone point me in the direction of or prvide DELPHI code examples of how to accomplish it?

Thanks in advance for any help.


drc :)

Re: how to create MySql, Oracle and SqLite database's

Posted: Tue 16 Dec 2014 10:06
by CristianP
I prefer to create users and databases manually (empty). For PostgreSQL (Oracle in you case) also schema.
All other things with SQL commands from my app.

Only one exception regarding SQLite where I prefer to check connection option ForceCreateDatabase

Best regards,
Cristian Peta

Re: how to create MySql, Oracle and SqLite database's

Posted: Wed 17 Dec 2014 08:29
by AlexP
Hello,

SQLite is a file database, therefore the database will be created on the first connection (the ForceCreateDatabase option must be set). In Oracle and PostgreSQL a database or a schema can be created with SQL commands. More details can be found in documentation of particular servers.