A: mysqli_open("localhost");
B: mysqli_connect("localhost");
C: connect_mysqli("localhost");
D: dbopen("localhost");
举一反三
- 连接 MySQL 数据库的正确方法是( ) A: mysql_open("localhost","root","root"); B: mysql_connect("localhost","root","root"); C: connect_mysql("localhost","root","root"); D: dbopen("localhost","root","root");
- 下面关于连接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
- 下面选项的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数据库的命令是“mysql -h localhost -u root -p”。
内容
- 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