MySQL database configuration

Feedback


MySQL  is a relational database management system. It has become one of the most popular relational database management systems due to its simple installation, multi-threading, cross-platform, high-performance, portability and open source characteristics. iPortal supports the use of MySQL database to store portal data, security information and monitoring information.

Install and configure the MySQL database

If you've already installed the MySQL database, you can directly configure the portal data storage, security information storage, and monitoring information storage after creating the database. If you didn't install MySQL yet, please refer to: MySQL installation and configuration.

Note: In iPortal, portal data, security information, and monitoring information can't be stored in the same MySQL database. You need to create different databases to store them.

Portal data storage configuration

It's recommended to configure the portal data storage before iPortal is started (before creating the initial administrator account). The configuration information is in the iportal.xml configuration file in the installation directory (%SuperMap iPortal_HOME%\webapps\iportal\WEB-INF). For details, see the iPortal configuration file description. As shown below, you only need to remove or delete the SQLite database connection pool configuration information, and remove the comment of the MySQL database connection pool configuration information.

<dbType>MYSQL</dbType>  

<driverClass>org.mariadb.jdbc.Driver</driverClass>  

<jdbcUrl>jdbc:mysql://localhost:3306/iportal?useUnicode=true&amp;characterEncoding=UTF-8</jdbcUrl>  

<maxPoolSize>30</maxPoolSize>  

<initialPoolSize>5</initialPoolSize>  

<minPoolSize>5</minPoolSize>  

<maxIdleTime>3000</maxIdleTime>  

<maxWait>300000</maxWait>

<username>root</username>  

<password></password>

If MySQL database has already installed on your system, you can configure information of MySQL in the iportal.xml configuration file and need to configure it according to the MySQL you installed, such as MySQL IP, port, database name, username and password.

Note:

Security information storage configuration

You can configure the iPortal security information storage after the iPortal is started. Log in to iPortal as the administrator, enter Management > Security, you can perform the security information configuration operations on the "Security Config" page. For details, see: Security information storage.

Monitoring information storage configuration

Once the server monitoring function of SuperMap iPortal is used, the monitoring information storage configuration needs to be performed before monitoring is enabled. The configuration information is in the iportal-monitor.xml configuration file in the installation directory (%SuperMap iPortal_HOME%\webapps\iportal\WEB-INF). The configuration information of the MySQL database has been written directly and you just need to open the comment. As shown below, you only need to comment out or delete the SQLite database connection pool configuration and remove the comment of the MySQL database connection pool configuration.

<dbType>MYSQL</dbType>  

<driverClass>org.mariadb.jdbc.Driver</driverClass>  

<jdbcUrl>jdbc:mysql://localhost:3306/monitor?useUnicode=true&amp;characterEncoding=UTF-8</jdbcUrl>  

<maxPoolSize>30</maxPoolSize>  

<initialPoolSize>5</initialPoolSize>  

<minPoolSize>5</minPoolSize>  

<maxIdleTime>3000</maxIdleTime>

<maxWait>30000</maxWait>  

<username>root</username>  

<password></password>

If MySQL database has already installed on your system, you can configure information of MySQL in the iportal-monitor.xml configuration file and need to configure it according to the MySQL you installed, such as MySQL IP, port, database name, username and password.

Note: