Replace the data source name "trademanager" with "jdbc/Main", and you should be able to access your MySQL database, as in the following:
<DataSource name="jdbc/Main" driverClassName="com.mysql.jdbc.Driver" username="root" password="" url="jdbc:mysql://localhost/TradeManager" validationQuery="SELECT no()" />
Note that there's no need to rename the database in MySQL itself (TradeManager).
Using another data source name requires that all database actions specified in the model which need to access the database, have an additional <Data Source> trigger, through which the name is specified.
Regards,
David
To use the full functionality of this web site, JavaScript needs to be turned on.
For best results, use the Firefox browser..
Copyright © 2003-2017 - Tersus Software Ltd., All rights reserved. Terms of Use License Graphic design by EmaraDesign