Database backup is completed in command line mode, using the MYSQLDUMP command. This command can be used to store data in the form of text files in the specified folder. Note: To operate the mysql database in command line mode, the computer's environment variables must be set. Right-click "My Computer", select the "Properties" command in the pop-up shortcut menu, select the "Advanced" tab in the pop-up "Properties" dialog box, and then click the "Environment Variables" button in the new pop-up dialog box. Find the variable PATH in the list box of user variables and select it, click the "Edit" button, add the installation path of the bin folder in the mysql database in the variable value text box of the variable PATH, and then add the "OK" button. The path of the bin folder depends on the location where you installed the mysql database. Note: If you use the integrated installation package to configure the PHP development environment, you do not need to perform the above settings because the integrated installation package has already been configured by itself. Complete. However, if mysql is installed independently, the above settings must be made to operate the mysql database in command line mode.
##1. MySQL backup and recovery operations (MYSQL). Statement operation tutorial 3)
Introduction: To complete the backup of data in command line mode, use It is the MYSQLDUMP command. This command can store data in the form of a text file in the specified folder. Note: To operate the mysql database in command line mode, you must right-click "My. Computer, select the "Properties" command in the pop-up shortcut menu, select the "Advanced" tab in the pop-up "Properties" dialog box, then click the "Environment Variables" button in the new pop-up dialog box, and in the list of user variables Find the variable PATH in the box and select it, click the "Edit" button, add the installation path of the bin folder in the mysql database in the variable value text box of the variable PATH, and then click the "OK" button
2. MySQL modify and delete statement operations (MYSQL statement operation tutorial 2)
Introduction: Modify records. To perform modification operations, you can use the UPDATE statement. The syntax format is as follows: UPDATE data table name set column_name = new_value1, column_name2 = new_value2,...[where condition] Among them, the set clause indicates the column to be modified and Their given values, the where clause is optional, if given it will specify which row in the record should be updated, otherwise, all rows in the record will be updated. For example, suppose there is a table called admin. We want to change the password of Tom in the table from 111 to 222. The statement is as follows:
3. MySQL insertion and query statements Operation (MYSQL statement operation tutorial 1)
Introduction: Insert, browse, modify and Deleting records can be done using sql statements in the MySQL command line. The following describes how to execute basic SQL statements in the MySQL command line. 1. Insert records When establishing an empty database and data table, the first thing you need to consider is how to add total data to the data table. This operation can be completed using the insert statement. The syntax format is as follows:
The above is the detailed content of Recommended articles about MYSQL statement operations. For more information, please follow other related articles on the PHP Chinese website!