These instructions will help you connect TermWeb to a MySQL database.
...
Create the TermWeb database by opening a DOS prompt and enter the following:
mysql -u root -p < createdb.sql
This creates an empty database called
termweb
and a usertermwebuser
with passwordtermwebpwd
. The user name and password can be changed as desired. The user currently needs all permissions (except GRANT) in the database.Import the
termweb.sql
file to the database, by running the following at the DOS prompt:mysql -u termwebuser -p termwebpwdptermwebpwd termweb < termweb.sql
3. Copy the MySQL JDBC Driver to Tomcat
...
Edit
<tomcat-install>/conf/context.xml
.Within the the
Context
tags tags, insert the DataSourceResource
DataSourceResource
tag:<Resource name="jdbc/TermWebDS"
auth="Container"
type="javax.sql.DataSource"
username="termwebuser"
password="termwebpwd"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost/termweb?autoReconnect=true&useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true"
maxActivemaxTotal="20"
maxIdle="10"
minIdle="2"
testWhileIdle="true"
validationQuery="Select 1"/>If MySQL does not run on the same server as Tomcat, replace
namelocalhost
in url with the name of the database server.
If you named the database something else thantermweb
, replacetermweb
in url with your databasename.
Replacetermwebuser
andtermwebpwd
in url with your database user and password.- Check Version specific upgrade notes for any actions needed for your TermWeb version.
Warning | ||
---|---|---|
| ||
Changes in |
Include Page | ||||
---|---|---|---|---|
|
Congratulations, you now have TermWeb connected to your SQL Server MySQL database.