数据库的连接字符串可以定义为”jdbc:mysqp://localhost:3306:company”。
举一反三
- 下面选项的MySQL数据库URL正确的是 A: jdbc:mysql://localhost/company B: jdbc:mysql://localhost:3306:company C: jdbc:mysql://localhost:3306/company D: jdbc:mysql://localhost/3306/company
- 下面关于连接mysql下的mydb数据库的url,编写正确的是() A: jdbc:mysql//:localhost:3306/mydb B: jdbc:mysql://localhost:3306/mydb C: mysql:jdbc//:localhost:3306/mydb D: mysql:jdbc://localhost:3306/mydb
- 通过Java协议连接本地的mysql数据库中的gradem数据库的url是___。 A: jdbc:mysql://localhost:3306/gradem B: jdbc:sqlserver://localhost:3306/gradem C: jdbc:mysql://localhost/gradem D: jdbcodbc:mysql://localhost:3306/gradem
- 连接mysql数据库的时候,下面哪个字符串不正确: A: com.mysql.jdbc.driver B: jdbc:mysql://localhost:3306/mydata C: root D: 123456
- 中国大学MOOC: MySQL数据库的JDBCUrl设置值是:jdbc: ://localhost:3306/数据库名