Blog system of Java Web project (II)

Source: Internet
Author: User

Blog system of Java Web project (II)

6. Unable to load driverProgram: An error occurred while loading the driver! I am adding the user's lib, think about whether to directly put the jar package under the lib directory of web-INF

This solves the problem.

7. Another exception: cannot create poolableconnectionfactory (Access denied for user ''@ 'localhost' (using password: Yes ))

This problem is troublesome. At first, I thought that the root permission was not enough, so I changed the permission in navicat.

However, if the request fails, do I have to write a specific URL?

Change localhost to 127.0.0.1

However, it still failed. I finally found that the password was wrong! I am speechless! No way. It's been useless for a long time, so I forgot! Remember!

8. Another exception occurred, which is depressing. It means the character encoding is wrong.

Com. MySQL. JDBC. Exceptions. jdbc4.mysqlsyntaxerrorexception: unknown character set: 'utf8mb4'

Below is an explanation from Baidu. I tried it, but I still reported the above error.

Later I thought about it. I want to try GBK.

Default-character-set = GBK (there are two parts to be modified !)

Then I tested it again!

This data is finally inserted into the database. It's not easy!

Hehahaha, I have gained a lot today. It's a pity that the test is poor today. Well, forget it. Continue to work hard!

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.