连接 MySQL 数据库的正确方法是( )
A: mysql_open("localhost","root","root");
B: mysql_connect("localhost","root","root");
C: connect_mysql("localhost","root","root");
D: dbopen("localhost","root","root");
A: mysql_open("localhost","root","root");
B: mysql_connect("localhost","root","root");
C: connect_mysql("localhost","root","root");
D: dbopen("localhost","root","root");
举一反三
- 连接本地MySQL数据库的命令是“mysql -h localhost -u root -p”。
- mysql _h localhost -u root,上述命令表示为“localhost”主机中的__________________用户
- 使用root账号登录mysql数据库的命令是 A: mysql -p root -u B: mysql -u root -p C: mysql root D: mysql -p root
- 如何在命令窗口连接MySQL数据库? A: MySQL -p root -u B: MySQL -u root -p C: MySQL -u -p root D: MySQL root -u -p
- 实现将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’;