• 2022-05-29
    连接MySQL数据库的正确方法是()
    A: mysqli_open("localhost");
    B: mysqli_connect("localhost");
    C: connect_mysqli("localhost");
    D: dbopen("localhost");
  • B

    内容

    • 0

      下列代码中,可以用来连接MongoDB数据库的是( )。 A: client = MongoClient() B: client = MongoClient('localhost', 27017) C: client = MongoClient('mongodb://localhost:27017') D: client = MongoClient('//localhost:27017')。

    • 1

      mysql _h localhost -u root,上述命令表示为“localhost”主机中的__________________用户

    • 2

      mysql数据库的jdbcUrl路径值为: :mysql://localhost:3306/数据库名

    • 3

      下列可以将mysql的本地root用户的密码修改为‘123’的是() A: setpasswordforroot@'localhost'=password('123'); B: updatemysql.usersetpassword=password('123')whereuser='root'andhost='localhost'; C: selectpasswordforroot@'localhost'=password('123'); D: createuserroot@'localhost'identifiedby'123';

    • 4

      以下哪种格式是正确的URL( )。 A: http://localhost/8080/news/index.jsp B: http://localhost:8080/news/index.jsp C: http:localhost://8080/news/index.jsp D: http://localhost/8080:news/index.jsp