Show the existing database by showing
Syntactic:
Show DATABASES [like Wild]
If you use the like wild section, the wild string can be a string that uses the SQL "%" and "_" wildcard characters.
Features: Show databases lists the
The importance of data backupIn a production environment, the security of data is critical, and any loss of data can have serious consequences. The importance can be reflected in the following points:1. Improved system high availability and disaster
1. mysql commands the user to connect to the databaseMySQL command format: mysql-h host address-u user name-P user password(1) Connect to MySQL on this computerFirst open the DOS window, then enter the directory Mysql\bin, and then type the command
1. Create database IF not EXISTS yourdbname DEFAULT CHARSET UTF8 COLLATE utf8_general_ci;Create DATABASE Yourdb DEFAULT CHARACTER SET gbk COLLATE gbk_chinese_ci;2. Switch database use DatabaseName;3. Deleting a databaseThe drop command is used to
1.linux commands to start MySQL:Mysqladmin start/ect/init.d/mysql start (front of MySQL installation path)2.linux Restart MySQL command:Mysqladmin restart/ect/init.d/mysql Restart (front of MySQL installation path)3.linux the command to turn off
1.linux commands to start MySQL:Mysqladmin start/ect/init.d/mysql start (front of MySQL installation path)2.linux Restart MySQL command:Mysqladmin restart/ect/init.d/mysql Restart (front of MySQL installation path)3.linux the command to turn off
db:11.2.0.3.0Oracle DBLINK is created into private and public DBLINK, which is created by default as private; Private Dblink only the created schema can be deleted, SYS can not be deleted, public dblink any schema can be deleted, as long as the
1, Connection MySQL format: mysql-h host address-u user name-P user Password1. Connect to MySQL on this machine. First open the DOS window, then enter the directory Mysql\bin, and then type the command Mysql-u root-p, enter after the prompt you to
1. Connect MySQLFormat: mysql-h host address-u user name-P user Password1. Connect to MySQL on this machine. First open the DOS window, then enter the directory Mysql\bin, and then type the command Mysql-u root-p, enter after the prompt you to lose
Mysql master-slave replication, mysql master-slave
Master-slave replication: There are two ways to start master-slave replication from MySQL5.6: Log-based (binlog); GTID-based (global transaction identifier );
1. Log-based master-slave replication
Use SQL to operate MySQL database Abstract: This section describes various SQL statements. This section describes Database-level SQL statements, operations such as viewing, creating, and deleting.
This section introduces various SQL statements.
Mysqldump
Mysql provides the msyqldump tool to export the database.
After searching for articles on the Internet, most of them are from one article, with a wide range of contents. Most of them are not used.
I sorted out some of the options I used
The following articles mainly describe the actual application of MySQL permission escalation and security restriction bypass vulnerabilities. I saw the actual application of MySQL permission escalation and security restriction bypass vulnerabilities
1. manually delete the file system database 1. the stop listening and OEM code is as follows: $ lsnrctlstoplistener_name $ emctlstopdblele2. obtain information about the data file, log file, and control file, including the archive code: $
The following articles mainly describe the actual application of MySQL permission escalation and security restriction bypass vulnerabilities. I saw the actual application of MySQL permission escalation and security restriction bypass vulnerabilities
Hot backup uses the mysqldump command for backup. This tool is a built-in MySQL backup and recovery tool with powerful functions. it can back up the entire database and back up multiple databases, you can back up a single table or several tables.
Mysql entry-level series: create, delete, and select databases for MYSQL [group chart] 3.3 create, delete, and select databases
MySQL provides three DATABASE-level statements: create database is used to CREATE a DATABASE, drop database is used to
Documentation for mysqldump: http://dev.mysql.com/doc/refman/5.1/zh/client-side-scripts.html#mysqldump
MysqldumpIt is most commonly used to back up an entire database:
shell> mysqldump db_name >backup-file.sql
You can read the dump file back to the
What do you do if you want to analyze data in the database at a specific time? For example, what measures do you take if you want to analyze the data at pm? The most frequently used method is to create a scheduled task, perform a backup at, and back
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.