Changing database connection parameters

From www.sermyadmin.org

Jump to: navigation, search

Declare the data source for SerMyAdmin to connect to Opensips’s database.

You can do this in a XML file found at /usr/local/tomcat6/conf/context.xml. The file should look like below:

<?xml version="1.0" encoding="UTF-8"?>
 <Context path="/serMyAdmin">
   <Resource auth="Container" driverClassName="com.mysql.jdbc.Driver"
   maxActive="20" maxIdle="10" maxWait="-1" name="jdbc/opensips_MySQL"
   type="javax.sql.DataSource"
   url="jdbc:mysql://localhost:3306/opensips" username="opensips" password="opensipsrw"/>
 </Context>
Personal tools