热门面试题与答案和在线测试
面向面试准备、在线测试、教程与实战练习的学习平台

通过聚焦学习路径、模拟测试和面试实战内容持续提升技能。

WithoutBook 将分主题面试题、在线练习测试、教程和对比指南整合到一个响应式学习空间中。

面试准备

MySQL 面试题与答案

Test your skills through the online practice test: MySQL Quiz Online Practice Test

问题 36. How To Create a Test Table in Your MySQL Server?

If you want to create a wbtest table in your MySQL server, you can use the "mysql" program in a command window as shown in the following tutorial:

>cd mysqlbin
>mysql -u root
Welcome to the MySQL monitor. Commands end with ; or g.
Your MySQL connection id is 8 to server version: 5.0.24-

mysql> use wbtest
Database changed

mysql> CREATE TABLE wbtest (message VARCHAR(80));
Query OK, 0 rows affected (0.13 sec)

mysql> INSERT INTO wbtest -> VALUES ('Welcome to GlobalGuideLine.com');
Query OK, 1 row affected (0.03 sec)

mysql> SELECT * FROM wbtest; +---------------------------------+

| message |

+---------------------------------+

| Welcome to GlobalGuideLine.come |

+---------------------------------+

1 row in set (0.00 sec)

mysql> DROP TABLE wbtest;
Query OK, 0 rows affected (0.01 sec)

mysql> quit
Bye

这有帮助吗? 添加评论 查看评论
 

问题 37. How To Shutdown MySQL Server?

If you want to shutdown your MySQL server, you can run the "mysqladmin" program in a command window as shown in the following tutorial:

>cd mysqlbin
>mysqladmin shutdown

这有帮助吗? 添加评论 查看评论
 

问题 38. What Tools Available for Managing MySQL Server?

MySQL comes with the following programs as administration tools for you to manage your MySQL server:

► mysqld - MySQL server daemon. You can use "mysqld" to start your MySQL server.
► mysqladmin - A command-line interface for administrators to perform server administration tasks.
► mysql - A command-line interface for end users to manage user data objects.
► mysqlcheck - A command-line interface for administrators to check and repair tables.
► mysqlshow - A command-line interface for end users to see information on tables and columns.
► mysqldump - A command-line interface for administrators or end users to export data from the server to files.
► mysqlimport - A command-line interface for administrators or end users to load data files into tables program tool to load data into tables.

这有帮助吗? 添加评论 查看评论
 

问题 39. What Is "mysqld"?

"mysqld" is MySQL server daemon program which runs quietly in background on your computer system. Invoking "mysqld" will start the MySQL server on your system. Terminating "mysqld" will shutdown the MySQL server. Here is a tutorial example of invoking "mysqld" with the "--console" option:

>cd mysqlbin
>mysqld --console
... 21:52:54 InnoDB: Started; log sequence number 0 43655
... 21:52:54 [Note] mysqld: ready for connections. Version: '5.0.24-community' socket: '' port: 3306 MySQL Community Edition (GPL)

The returning message indicates that "mysqld" running now, and your MySQL server is ready to take client connections. To know about "mysqld", read other parts of this FAQ collection.

这有帮助吗? 添加评论 查看评论
 

问题 40. What Is "mysqladmin" in MySQL?

"mysqladmin" is a command-line interface for administrators to perform server administration tasks. It support a number of commonly used commands like:

► "mysqladmin shutdown" - Shuts down the server.
► "mysqladmin ping" - Checks if the server is alive or not.
► "mysqladmin status" - Displays several important server status values.
► "mysqladmin version" - Displays version information of the server.
► "mysqladmin create databaseName" - Creates a new database.
► "mysqladmin drop databaseName" - Drops an existing database.

这有帮助吗? 添加评论 查看评论
 

用户评价最有帮助的内容:

版权所有 © 2026,WithoutBook。