Use DORADO5 to create a connection to a database (MySQL is connected to the database here)

Source: Internet
Author: User

1. In Dorado, expand the project that has been created:

2. Locate the DataSource (data source) node under Configures (config file), and double-click the node to get the database connection creation area on the right side of the display area:

3, click the red circle marked the portion of the green "ADD" to start the connection of the database, click the "Data source name" to create, and "data source Type" selection, here, the type of the default Jdbc,name random (preferably with the project name, such as the project is Hr_manage, The name is set to HR_MANAGEJDBC):

4, click OK, pop up the "Data Source Configuration Center", the database used in this project is MySQL, the configuration is as follows:

Where dialect select with MySQL, driver select MySQL driver, the URL of the address behind the database changed to the database created in Word Count database, here is the example of "School database", and then the username user (is the MySQL database connection user name, The default is root, of course, depends on your installation of MySQL is the user name you write, password is also the user name set when installing MySQL. followed by the database encoding format, it must be in the database we created when the code format of the library is consistent, otherwise garbled. Then click OK (Parameters no tube);

5, click OK will appear the following interface, has generated a database connection object, can be used at any time (using all the tables contained therein):

6, test, test whether it (HR_MANAGEJDBC) can successfully connect to the database.

(1) Open the server, click the Dorado Service Start button, as follows:

The service starts and the console appears as follows:

(2) After the service starts (must start the service) click on the Vilidata in the upper right to connect the test:

(3) The following situation indicates that the connection of database school (the database that I created in this example) is successful and can be called at any time:

(5) Click "OK", dorado the connection with the database is complete!

PS: If help you, please reply "Thank you", really gray often thanks!

If there is doubt, the pro direct question, I will be the first time online answer!

Use DORADO5 to create a connection to a database (MySQL is connected to the database here)

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.