数据库的连接字符串可以定义为”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/数据库名
内容
- 0
jdbc:mysql://localhost:3306/student中,student表示访问的数据库名称。 A: 正确 B: 错误
- 1
中国大学MOOC: jdbc:mysql://localhost:3306/student中,student表示访问的数据库名称。
- 2
mysql数据库的jdbcUrl路径值为: :mysql://localhost:3306/数据库名
- 3
在JSP中使用JDBC连接数据库,正确导入SQl类库的语句为:()
- 4
下列关于JDBC说法,错误的是( ) A: JDBC即Java数据库连接,是一组专门负责连接并操作数据库的API B: JDBC依赖于具体的数据库 C: JDBC可以完成与一个数据库的连接操作 D: JDBC可以发送SQL命令给已连接的数据库