Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

MySQL Interview Questions and Answers

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

Ques 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

Is it helpful? Add Comment View Comments
 

Ques 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

Is it helpful? Add Comment View Comments
 

Ques 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.

Is it helpful? Add Comment View Comments
 

Ques 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.

Is it helpful? Add Comment View Comments
 

Ques 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.

Is it helpful? Add Comment View Comments
 

Most helpful rated by users:

©2024 WithoutBook