In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces "what DLOG4J needs to pay attention to when using MySQL". In daily operation, I believe that many people have doubts about what problems DLOG4J needs to pay attention to when using MySQL. Xiaobian consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts of "what does DLOG4J need to pay attention to when using MySQL?" Next, please follow the editor to study!
Introduction:
Many friends choose MySQL database when using DLOG4J, and the problems encountered are similar, so sort out the matters that should be paid attention to when using MySQL database, please follow the following steps in the process of installation and setup to avoid more detours.
1. Establishment of database
The establishment of the database should choose the dlog4j_mysql_323.sql file under the doc/database directory in the source code package or click dlog4j_mysql_323.sql directly to download, and use the command line of mysql to execute the database-building statement. As for how to execute this script file, please refer to the manual of MySQL. In the process of building the database, please pay attention to any error messages, and you must ensure that the database is established correctly.
2. The choice of JDBC driver
It is recommended to use the mysql driver package included in the source package, which is a patched driver package that has been tested to be feasible and stable. The driver package is located in the jdbc directory in the source package with the file name: mysql-connector-java-3.0.11-stable-liudong-bin.jar. Copy it to the / WEB-INF/lib directory.
3. Database connection configuration
For the configuration struts-config.xml of the data source, please see the following snippet:
4. Shut down the HSQLDB database
Please delete or comment out the HSQLDB Database engine Mini Service section in web.xml, as follows
At this point, the study on "what DLOG4J needs to pay attention to when using MySQL" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.