Requirements: MySQL Database Management and Maintenance
1. Familiar with installing, configuring, and optimizing MySQL Databases on Linux,
2. Familiar with Mysql AB replication and read/write splitting, and can complete operations such as adding
As we all know, drop table will seriously consume server I/O performance. If the size of the table to be dropped is large, it may even affect the normal online operation.
First, let's take a look at why a table with a large drop capacity affects
1. Group function usage rules
In mysql, group functions can be used at will in select statements. However, if a group function exists in a query statement in oracle, other column names must have been processed by group functions, or a column in the
This article describes network performance management techniques for Linux systems. It mainly describes how to use route, netstat, and tcpdump network management test tools and their functions.
Route
When configuring the network, you must specify
In mysql, there are actually a lot of methods and functions that are very useful. This introduction is called coalesce, and spelling is very troublesome, however, the function is to return the first non-null value of the input parameter, for example
Databases are IO-intensive applications. Their primary responsibilities are data management and storage. We know that the time for reading a database from the memory is microseconds, while reading an IO from a common hard disk is in milliseconds.
Connect C ++/C to MySQL database in Linux (3) -- Process returned data 1. Number of fields in the returned result set
Unsigned int mysql_field_count (MYSQL * connection); // use the value of MYSQL_ROW as an array that stores a row of data...
Example:
1. System Environment Description:1. Two database servers, A and B;2. Currently, A is in use and serves as the master server. B is used as the backup database server;3. The database for Hot Backup contains data tables of MyISAM and InnoDB type;
Ii.
My MySQL uses the default utf8 encoding, and the database is also configured with utf8 encoding. You can use a program to add Chinese data. If you use SQL statements to add data in cmd, an error message similar to Incorrect string value is returned:
Method 1: Use the mysql command to viewIn MySQL, you can view common system information directly by checking the status, as shown in the following example:Copy codeThe Code is as follows:1. $ mysql-u root-p2. mysql> s"Threads: 2 Questions: 224857636
I recently sorted out the settings of MySql url parameters on the Internet. I hope you can give me some advice on the following:The URL format of mysql JDBC is as follows:Jdbc: mysql: // [host: port], [host: port].../[database] [? Parameter Name 1] [
15. Join table
One of the most powerful functions of SQL is to join tables during data retrieval and query execution. Join is the most important operation that can be executed using SQL SELECT.
A relational table is designed to ensure that
The description of Replace is similar to the insert statement.
If an old record in the table has the same value as a new record used for the primary key or a UNIQUE index, the old record is deleted before the new record is inserted.
Unless the table
IFNULL (expr1, expr2)If expr1 is not NULL, IFNULL () returns expr1; otherwise, it returns expr2. IFNULL () returns a number or string value, depending on the context in which it is used.
SELECT IFNULL(1,0); // 1 SELECT IFNULL(0,10); // 0
Download phpMyAdmin 3.3.6The address is published. If you are interested in phpMyAdmin, you can go to phpMyAdmin to obtain the latest official address.Download phpMyAdmin 3.3.6Download and try it out. PhpMyAdmin 3.3.6 released this time is a
1. MySQLIt is a relational database management system developed by MySQL AB in Sweden. because of its small size, high speed, and low overall cost, in particular, the open source code features that many small and medium websites have chosen the
XAMMPP Version: xampp-win32-1.8.3-0-VC11-installer
MySQL Version:
[View the current MySQL version]
Use-V Parameters
First, we must think of the parameter command to view the version number. The parameter is-V (uppercase letter) or -- version.
1. Create a test table on the source sideCreate table s select * from mysql. user;2. view the table creation statement of the test table on the source side.Show create table s;Create table's '('Host' char (60) character set utf8 COLLATE utf8_bin not
Because the default mysql engine is innodb, no engine is specified when phpmyadmin creates a table, that is, the default innodb is used. this engine is connected to ibdata1, ib_logfile0, and ib_logfile1 In the mysql/data/directory. These three files
How can I recover an ibdata1 database deleted by mysql by mistake?
If ibdata1 and ib_logfile * related to mysql innodb are deleted by mistake on the online server *,How should we restore it?
At this time it should be cold sweat, right?===============
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service