Shell> mysqladmin –u root –p shutdown
Shell> nmc mysql shutdown
Mysql> STOP PROCESS mysqld
Shell> /etc/init.d/mysql stop
Shell> service mysql safe_exit
Shell> pkill –u mysql mysqld_safe
Shell> net stop mysql
第1题:
You have forgotten the root user account password. You decide to reset the password and execute the following:Shell> /etc/init.d/mysql stopShell> /etc/init.d/mysql start – skip-grant tablesWhich additional argument makes this operation safer?()
A.–skip-networking, to prohibit access from remote locations
B.–reset-grant-tables, to start the server with only the mysql database accessible
C.–read-only,to set all data to read-only except for super users
D.–old-passwords, to start Mysql to use the old password format while running without the grant tables
第2题:
A.Mysql NDB Cluster
B.Mysql Replication
C.Distributed Replicated Block Device (DRBD) and Mysql
D.Windows Cluster and Mysql
E.Solaris Cluster and Mysql
第3题:
Mysqldump was used to create a single schema backup; Shell> mysqldump –u root –p sakila > sakila2013.sqlWhich two commands will restore the sakila database without interfering with other running database?()
A.Mysql> USE sakila; LOAD DATA INFILE ‘sakila2013.sql‘;
B.Shell> mysql –u root –p sakila sakila2013.sql
C.Shell> mysql import –u root –p sakila sakila2013.sql
D.Shell> mysql –u root -p –e ‘use sakila; source sakila2013.sql‘
E.Shell> mysql –u root –p –silent < sakila2013.sql
第4题:
In a test database, you issue the SELECT … INTO OUTFILE statement to create a file with your t1 table data. You then TRUNCATE this table to empty it.() Mysql> SELECT * INTO OUTFILE '/tmp/t1.sql' from t1; mysql> TRUNCATE t1;
第5题:
Which High Availability solution can provide a consistent, time-delayed (for example, one hour) snapshot of the live production database?()
第6题:
You use—login-path to access a MySQL server on a Linux installation. Which statement is true about the – login-path option that is created by using mysql_config_editor?()
第7题:
You install a copy of Mysql 5.6.13 on a brand new Linux server by using RPM packages. The server starts successfully as verified by the following commands: $ pidof mysqld 3132 $tail – n2 /var/lib.mysql/hostname.err 2013-08-18 08:18:38 3132 [Note] /usr/sbin/mysqld:ready for connections. Version: '5.6.13-enterprise-commercial-advaced' socket:'/tmp/mysql.sock' port; 3306 Mysql Enterprise Server – Advanced Edition (Commercial) You attempt to log in as the root user with the following command: $mysql – u root ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) Which statement is true about this scenario?()
第8题:
修改MySQL用户root的密码的指令是()。
第9题:
–skip-networking, to prohibit access from remote locations
–reset-grant-tables, to start the server with only the mysql database accessible
–read-only,to set all data to read-only except for super users
–old-passwords, to start Mysql to use the old password format while running without the grant tables
第10题:
$ mysqladmin – u root – p – h localhost test – restore /tmp/t1.sql
Mysql> INSERT INTO t1 VALUES FROM '/tmp/t1.sql'
$ mysql – u root – p – h localhost test < /tmp/t1.sql
Mysql> LOAD DATA INFILE '/tmp/t1.sql' INTO TABLE t1
$ mysqlinport – u root – p – h localhost test /tmp/t1.sql
第11题:
Mysql> USE sakila; LOAD DATA INFILE 'sakila2013.sql';
Shell> mysql –u root –p sakila sakila2013.sql
Shell> mysql import –u root –p sakila sakila2013.sql
Shell> mysql –u root -p –e 'use sakila; source sakila2013.sql'
Shell> mysql –u root –p –silent < sakila2013.sql
第12题:
A
B
C
D
第13题:
A.A
B.B
C.C
D.D
第14题:
You execute the following statement in a Microsoft Windows environment. There are no conflicts in the path name definitions.C: \> mysqld – install Mysql56 – defaults – file = C :\my –opts.cnf What is the expected outcome?()
A.Mysql is installed as the Windows service name Mysql56, and uses c: \my-opts.cnf as the configuration file
B.An error message is issued because – install is not a valid option for mysqld
C.A running Mysql 5.6 installation has its runtime configuration updated with the server variables set in c: \my-opts.cnf
D.Mysqld acts as an MSI installer and installs the Mysql 5.6 version, with the c: \my-opts.cnf configuration file
第15题:
Mysqldump was used to create a single schema backup; Shell> mysqldump –u root –p sakila > sakila2013.sql Which two commands will restore the sakila database without interfering with other running database?()
第16题:
You execute the following statement in a Microsoft Windows environment. There are no conflicts in the path name definitions. C: /> mysqld – install Mysql56 – defaults – file = C :/my –opts.cnf What is the expected outcome?()
第17题:
You are attempting to secure a MySQL server by using SSL encryption. On starting MySQL, you get this error: 130123 10:38:02 [ERROR] mysqld: unknown option '—ssl' What is the cause of the error?()
第18题:
You have table 'apps','userdata' on server that uses MyISAM storage engine. You want to transfer this data to server but use InnoDB engine instead. You execute the following commands: ServerB commands: Shell> mysqldump –u root –h server –no-data apps userdata | mysql –u root –p apps Shell> mysql –u root –p –h server –e 'ALTER TABLE 'apps','userdata' ENGINE=InnoDB;' Shell> mysqldump –u root –p –h server –no-create-info –order-by-primary apps userdata | mysql –u root –p apps What effect does the – order-by-primary argument have on the mysqldump command?()
第19题:
You have forgotten the root user account password. You decide to reset the password and execute the following: Shell> /etc/init.d/mysql stop Shell> /etc/init.d/mysql start – skip-grant tables Which additional argument makes this operation safer?()
第20题:
Disabling connections from named pipes or socket files (depending on the operating system of the server)
Enabling and using SSL for connections to the Mysql database
Installing Mysql on the application server, and running the database and application on the same server
Starting the server with – bind- address=0.0.0.0 specified
Running the server with – skip-networking specified
Limiting logins to originate from the application server or the server's subnet'
第21题:
Mysql> USE sakila; LOAD DATA INFILE 'sakila2013.sql';
Shell> mysql –u root –p sakila sakila2013.sql
Shell> mysql import –u root –p sakila sakila2013.sql
Shell> mysql –u root -p –e 'use sakila; source sakila2013.sql'
Shell> mysql –u root –p –silent < sakila2013.sql
第22题:
Mysql is installed as the Windows service name Mysql56, and uses c: /my-opts.cnf as the configuration file
An error message is issued because – install is not a valid option for mysqld
A running Mysql 5.6 installation has its runtime configuration updated with the server variables set in c: /my-opts.cnf
Mysqld acts as an MSI installer and installs the Mysql 5.6 version, with the c: /my-opts.cnf configuration file
第23题:
Shell> mysqladmin –u root –p shutdown
Shell> nmc mysql shutdown
Mysql> STOP PROCESS mysqld
Shell> /etc/init.d/mysql stop
Shell> service mysql safe_exit
Shell> pkill –u mysql mysqld_safe
Shell> net stop mysql
第24题:
mysqladmin -u root password test
mysql -u root password test
mysql -u root -p test
mysql -u root -password test