• 2022-06-07
    下面关于连接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
  • B

    内容

    • 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”。( )