back.gif

next.gif


Preferences and Connection Settings

 

Preferences and global settings

 

In addition to the data stored on a per-server basis; MONyog has a database storing global user preferences (preferences.config database) and also a very tiny text file (MONyog.ini), that only has what minimal information is required for MONyog to start.

 

connection.data

 

There is a [preferences] table in connection.data which is used for storing the default processlist query.

 

CREATE TABLE IF NOT EXISTS [preferences] (
[name] VARCHAR(50) DEFAULT '' NOT NULL PRIMARY KEY UNIQUE,
[value] TEXT DEFAULT '');

 

The 'server_names' table is used for storing all the connection details.

 

CREATE TABLE [server_names] (id INTEGER DEFAULT 0 NOT NULL PRIMARY KEY UNIQUE,    

key VARCHAR(255) DEFAULT '' NOT NULL,     

value VARCHAR(255) DEFAULT '' NOT NULL);

 

 

Connections management by database manipulations.

 

You can make use of this information to create a script or application to manage connections without using the MONyog 'register servers' GUI or simply (in some cases) perform operations from the file system manually (NOTE: Please make sure that MONyog is stopped before performing any of the operations).

 

For instance:

 

 

After MONyog is restarted, changes will have effect.

 

 

 

back.gif

next.gif