Access MySql in MyEclipse

  1. Window tab
    Select Open PerSpective
    Select MyEclipse Database Explorer to open the database view
    insert image description here
  2. Right-click in DB Browser and select New…
    insert image description here
  3. Configure in the Database Driver interface
    a. Driver template: connected database template
    b. Driver name: custom name
    c. Connection URL: URL
    d. User name: user name
    e. Passwd: password
    f. [Add JARs]: Add Mysql Jar package
    g. [Test Driver]: Test the driver (optional)
    h. [Save Passwd]: Save the password for easier access next time

insert image description here
4) After clicking [Finish], the configured database connection "mysql" will appear
insert image description here

  1. Right-click on the newly created database connection mysql and select open connection...
    insert image description here

  2. Expand to see the database and table structure
    insert image description here

  3. Right click on "Connected to mysql" and select "new SQL Editor"
    insert image description here

  4. Enter the SQL statement in the "SQL Editor" that appears, and click the "green triangle" to execute
    insert image description here

  5. Show results
    insert image description here

Guess you like

Origin blog.csdn.net/liaowenxiong/article/details/123591233