how to use mysql database in ubuntu? i tried using code example in "DatabaseWithJDBC" , but it failed, it the error occurred in
this is my extension.xml for some referenceCode:con = (Connection) getApi().acquireManagedObject("conPol", esDB);
Code:<?xml version="1.0" encoding="utf-8" ?> <Extension> <Name>maxi_ext</Name> <ManagedObjects> <ManagedObject> <Handle>conPol</Handle> <Type>Java</Type> <Path>max.ext.conPol</Path> <Variables> <Variable name="drivers" type="string">com.mysql.jdbc.Driver</Variable> <Variable name="pools" type="EsObject"> <Entry> <Variable name="poolname" type="string">mysqlpool</Variable> <Variable name="url" type="string">jdbc:mysql://localhost:3306/MySQL</Variable> <Variable name="user" type="string">korban</Variable> <Variable name="password" type="string">sambal</Variable> <Variable name="timeout" type="integer">2000</Variable> </Entry> </Variable> </Variables> </ManagedObject> </ManagedObjects> <EventHandlers> <LoginHandlers> <LoginHandler> <Handle>login</Handle> <Type>Java</Type> <Path>max.ext.login</Path> <Variables> <Variable name="poolname" type="string">mysqlpool</Variable> </Variables> </LoginHandler> </LoginHandlers> </EventHandlers> </Extension>


Reply With Quote
