AmitDiwan has Published 10744 Articles

Executing SQL Statements from a Text File on MySQL Client

AmitDiwan

AmitDiwan

Updated on 10-Mar-2021 12:53:25

1K+ Views

Let us understand how SQL statements can be executed from a text file on the MySQL client. The mysql client is generally used in interactive way. Let us see an example of the same −shell> mysql db_namePlace SQL Satements in a Text FileIt is also possible to put the SQL ... Read More

MySQL Client Server-Side Help

AmitDiwan

AmitDiwan

Updated on 10-Mar-2021 12:52:36

572 Views

Let us understand the MySQL client-server side help −mysql> help search_stringIf an argument is provided to the above ‘help’ command, mysql will use it as a search string to access server-side help from the contents of the MySQL Reference Manual. The proper operation of this command needs that the help ... Read More

MySQL Client Logging

AmitDiwan

AmitDiwan

Updated on 10-Mar-2021 12:51:05

510 Views

Let us understand about client logging with respect to MySQL. The mysql client can do different types of logging for statements that are executed, and it can be interactively −UNIX - LoggingOn Unix, mysql writes the statements to a history file. By default, this file is named as .mysql_history in ... Read More

MySQL Client Commands

AmitDiwan

AmitDiwan

Updated on 10-Mar-2021 12:50:00

1K+ Views

Let us understand some of the MySQL client commands −MySQL sends every SQL statement that the user issues to the server so that it can be executed. There is also a set of commands that mysql interprets on its own.Get the List of CommandsThe list of these commands can be ... Read More

MySQL Client Options

AmitDiwan

AmitDiwan

Updated on 10-Mar-2021 12:47:49

403 Views

The mysql supports the below mentioned options, which can be specified on the command line or in the [mysql] and [client] groups of an option file.--help, -?It helps display a help message and exit.--auto-rehashIt enables automatic rehashing. This option is set by default, which enables database, table, and column name ... Read More

The MySQL Command-Line Client

AmitDiwan

AmitDiwan

Updated on 10-Mar-2021 12:45:56

1K+ Views

The mysql is a simple SQL shell that has input line editing capabilities. It supports interactive and noninteractive usage. When it is used interactively, query results are presented in an ASCII-table format. When it is used noninteractively, like a filter, the result would be presented in tab-separated format.The output format ... Read More

MySQL Client Programs

AmitDiwan

AmitDiwan

Updated on 10-Mar-2021 12:44:27

3K+ Views

There are 7 client programs, which are listed below −mysqlmysqladminmysqlcheckmysqldumpmysqlimportmysqlpumpmysqlshowmysqlslapLet us understand the MySQL client programs in brief −mysqlThe mysql is a simple SQL shell that has input line editing capabilities. It supports interactive and noninteractive usage. When it is used interactively, query results are presented in an ASCII-table format.It ... Read More

mysql_upgrade - Check and Upgrade MySQL Tables

AmitDiwan

AmitDiwan

Updated on 10-Mar-2021 12:43:31

902 Views

Let us understand mysql_upgrade program −UsageEvery time MySQL is upgraded, the user should execute mysql_upgrade, that looks for incompatibilities with the upgraded MySQL server.It upgrades the system tables in the mysql schema so that the user can take advantage of new privileges or capabilities that could have been added after ... Read More

mysql_tzinfo_to_sql - Load the Time Zone Tables in MySQL

AmitDiwan

AmitDiwan

Updated on 10-Mar-2021 12:42:21

1K+ Views

The mysql_tzinfo_to_sql program helps load the time zone tables in the mysql database. It is used on systems which have a zoneinfo database, i.e the set of files that describe the time zones. Examples of such systems include Linux, FreeBSD, Solaris, and macOS. One most probable location for these files ... Read More

mysql_ssl_rsa_setup - Create SSL/RSA Files in MySQL

AmitDiwan

AmitDiwan

Updated on 10-Mar-2021 12:41:22

693 Views

Let us understand mysql_ssl_rsa_setup program −This program helps create the SSL certificate, key files and the RSA key-pair files that are required to support secure connections with the help of SSL and secure password exchange using RSA over unencrypted connections, if they are missing. The mysql_ssl_rsa_setup program can be used ... Read More

Advertisements