User Tools

Site Tools


database_class

Database class

This provides all database connectivity to MySQL.

Setting up

All configuration of databases are done in the config.php file, where the following directives needs to be set.

global_database_serverThe host name of the global database server
global_database_usernameThe user name of the global database user
global_database_passwordThe password of the global database user
global_database_nameThe name of the global database
instance_database_nameThe prefix of the instance databases

The user provided in this configuration file should have full access to create new databases as it creates the instance databases. If you operate with a single instance, you can revoke these rights after you have created your instance.

Querying the database

You query the database using either globalQuery() for the global database or instanceQuery() for the active instance database.

database_class.txt · Last modified: 2019/12/21 21:49 by sahl

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki