下面关于连接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
A: jdbc:mysql//:localhost:3306/mydb
B: jdbc:mysql://localhost:3306/mydb
C: mysql:jdbc//:localhost:3306/mydb
D: mysql:jdbc://localhost:3306/mydb
B
举一反三
- 下面选项的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
- 通过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
- jdbc:mysql://localhost:3306/student中,student表示访问的数据库名称。 A: 正确 B: 错误
- 中国大学MOOC: MySQL数据库的JDBCUrl设置值是:jdbc: ://localhost:3306/数据库名
内容
- 0
中国大学MOOC: jdbc:mysql://localhost:3306/student中,student表示访问的数据库名称。
- 1
mysql数据库的jdbcUrl路径值为: :mysql://localhost:3306/数据库名
- 2
数据库的连接字符串可以定义为”jdbc:mysqp://localhost:3306:company”。
- 3
下面关于连接mysql下的mydb数据库的url,编写正确的是()
- 4
在MySQL命令中,用于切换到mydb数据库的命令是“USE mydb”或“\u mydb”。( )