FAQs about Tomcat and MySQL

Source: Internet
Author: User
Tags mssqlserver

Dataworks OA adopts Tomcat 6 and mysql5, related solutions for Tomcat startup, MySQL startup, MySQL Case sensitivity, MySQL encoding, and Java connection to MySQL.

 

1.Delete MySQL from the service

If you have installed different versions of MySQL, the old MySQL process exists in the service when the uninstallation is not clean, resulting in MySQL cannot be started normally. Enter: SC Delete MySQL can delete related services.

 

2.TomcatMySQL is automatically started at startup.

Add start mysqld.exe at the beginning of Tomcat startup. bat.

 

3.TomcatDetermine whether MySQL is started at startup

Add the following at the beginning of Tomcat startup. BAT:

Tasklist | find "mysqld.exe"

If errorlevel 1 (

Start mysqld.exe

Goto list

)

: List

 

4.MySQLCase sensitivity of tables

Add lower_case_table_names = 1 to MySQL. ini to indicate case insensitive, just like MSSQLServer.

 

5.MySQLEncoding and JavaConnect to MySQL

We use GBK encoding and add the following to MySQL. ini:

Default-character-set = GBK

Character_set_server = GBK

Use

JDBC: mysql: // localhost: 3306/sz_groupoa? Useunicode = true & characterencoding = GBK

This is consistent with MSSQLServer.

 

The above points are used in dataworks 294924968. For specific applications, you can download them at www.saas88.com. If you have any questions or suggestions about Tomcat and MySQL, contact QQ:. Email: soarwell@qq.com; Tel: 0755-25580288

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.