Applies to: every Clarion version with a SQL driver; asked in 2025 for a fresh MariaDB install, PostgreSQL and MySQL named too.
Problem
A new, clean server install holds only the system databases. The developer has no hands-on access to the site and asked whether Clarion can create the database, its users and so on, or whether that has to be back-end scripting.
Solution
Four routes came up; none was tried in the thread, so they are listed as the posters ranked them.
- Let the installer do it. The setup program that installs the application on the client's machine already runs elevated and can run the
CREATE DATABASE/CREATE TABLEscripts against the engine with high privileges. - Restore a backup of an empty starter database instead of running scripts; one poster found that less tricky to implement.
- Run the statements from Clarion through PROP:SQL. It works, but the connection must be to the system database as a user holding the
CREATE DATABASEprivilege; on a server you do not administer that is the DBA's call. The same applies to a third-party driver: the SQL is possible, the permission decides. - Call the engine's command-line client (psql for PostgreSQL) from the program with scripts stored in the application; one poster did database creation and later upgrades that way years ago. MSSQL and MySQL ship a comparable tool; MariaDB was not checked in the thread.
For the table scripts themselves the thread named dct2sql (generates scripts from the dictionary) and CapeSoft FM3.
Caveats
- The original poster had not decided when the thread ended; "restore an empty starter DB" was the idea he took up first.
- Table creation by the application at OPEN time was not what was asked; the question was the database itself.
Today (2026)
Current (2025 thread). The privilege point is the constant: whichever route, something must connect once with the right to create a database, and an installer running elevated is the usual place for it. Not re-tested here.
Sources: Arnor B. (Jun 2025, the question), John D., Jon W., Sean H., Jeff S., Bruce (CapeSoft), Geoff, Oleg F. (Jun 2025) in softvelocity.clarion.databasedrivers.