连接 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 数据库的正确方法是( ) A: mysql_open("localhost","root","root"); B: mysql_connect("localhost","root","root"); C: connect_mysql("localhost","root","root"); D: dbopen("localhost","root","root");
实现将root用户的密码修改为'1111'的语句,正确的是() A: alter user 'root'@'localhost' identified by ‘1111’; B: alter user 'root'@'localhost' identified by 1111; C: alter user 'root'@'localhost' =‘1111’; D: set user 'root'@'localhost' =‘1111’;
实现将root用户的密码修改为'1111'的语句,正确的是() A: alter user 'root'@'localhost' identified by ‘1111’; B: alter user 'root'@'localhost' identified by 1111; C: alter user 'root'@'localhost' =‘1111’; D: set user 'root'@'localhost' =‘1111’;
从下面的信息:root@localhost ~]#可以得知前面用户是() A: 不确定 B: root C: localhost D: bin
从下面的信息:root@localhost ~]#可以得知前面用户是() A: 不确定 B: root C: localhost D: bin
请看下面的代码,数据库关闭指令将关闭哪个链接标识?( ) <?php $link=mysql_connect("localhost","root",""); $link2=mysql_connect("localhost","root",""); mysql_close(); ?>
请看下面的代码,数据库关闭指令将关闭哪个链接标识?( ) <?php $link=mysql_connect("localhost","root",""); $link2=mysql_connect("localhost","root",""); mysql_close(); ?>
mysql _h localhost -u root,上述命令表示为“localhost”主机中的__________________用户
mysql _h localhost -u root,上述命令表示为“localhost”主机中的__________________用户
下列可以将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';
下列可以将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';
下面通过UPDATE语句将root用户的密码修改为mypwd2的语句中,正确的是 A: UPDATE mysql.user SET Password=PASSWORD('mypwd2') WHERE User='root' and Host='localhost'; B: UPDATE mysql.users SET Password=PASSWORD('mypwd2') WHERE User='root' and Host='localhost'; C: UPDATE mysql.users SET Password=PASSWORD('mypwd2') WHERE User='root' OR Host='localhost'; D: UPDATE mysql.user SET Password=PASSWORD('mypwd2') WHILE User='root' OR Host='localhost';
下面通过UPDATE语句将root用户的密码修改为mypwd2的语句中,正确的是 A: UPDATE mysql.user SET Password=PASSWORD('mypwd2') WHERE User='root' and Host='localhost'; B: UPDATE mysql.users SET Password=PASSWORD('mypwd2') WHERE User='root' and Host='localhost'; C: UPDATE mysql.users SET Password=PASSWORD('mypwd2') WHERE User='root' OR Host='localhost'; D: UPDATE mysql.user SET Password=PASSWORD('mypwd2') WHILE User='root' OR Host='localhost';
style="padding-left:0px;">下面哪条语句创建了一个连接对象() A: con = pymysql.connect(“localhost”,"root","pass","testdb") B: con = pymysql.connect(“localhost”,"root") C: con = pymysql.connect(“localhost”,"pass","testdb") D: con = pymysql.connect("testdb")
style="padding-left:0px;">下面哪条语句创建了一个连接对象() A: con = pymysql.connect(“localhost”,"root","pass","testdb") B: con = pymysql.connect(“localhost”,"root") C: con = pymysql.connect(“localhost”,"pass","testdb") D: con = pymysql.connect("testdb")
请看代码,数据库关闭指令将关闭哪个连接标识?( )<;?$link1 =mysql_connect("localhost","root","");$link2 =mysql_connect("localhost","root","");mysql_close();?>; A: $link1 B: $link2 C: 全部关闭 D: 报错
请看代码,数据库关闭指令将关闭哪个连接标识?( )<;?$link1 =mysql_connect("localhost","root","");$link2 =mysql_connect("localhost","root","");mysql_close();?>; A: $link1 B: $link2 C: 全部关闭 D: 报错
下列选项中关于数据库的描述错误的是()。 A: ALTERUSER’root’@’localhost’IDENTIFIEDBY’000’ B: SETPASSWORDFOR’root’@’localhost’=’000’ C: mysqladmin–uroot-ppassword000 D: 以上答案都不正确
下列选项中关于数据库的描述错误的是()。 A: ALTERUSER’root’@’localhost’IDENTIFIEDBY’000’ B: SETPASSWORDFOR’root’@’localhost’=’000’ C: mysqladmin–uroot-ppassword000 D: 以上答案都不正确