MySQL Getting Started guide, hope for everybody use!!
First, SQL crash
Here are some important SQL quick references, for SQL syntax and added features on standard SQL, please check the MySQL manual.
1. Create a table
A table is one of the most
Environment: MySQL Sever 5.1 + MySQL command line tool
Problem: MySQL command line login
Solve:
command-line logon syntax:
Mysql–u username [–h host name or IP address]–p password
Description: User name is the user you login, host name or IP
After you build your fabric, you can create HA group, Shard Group, Ha+shard group, and so on, based on it. Here to explain how to quickly build the HA environment.
Fabric
192.168.2.234:33060
Master
192.168.2.234:33061
Linux+apache+mysql+perl/php/python a group of commonly used to build Dynamic Web site or server open source software, itself are separate programs, but because often put together to use, has more and more high compatibility, Together form a powerful
MySQL is a relational database management system, developed by the MySQL AB Company in Sweden and currently belongs to Oracle Company. MySQL is a relational database management system in which the associated database keeps data in different tables
I. Type of index
In MySQL, the index is implemented at the storage engine layer, not the server layer, so there is no uniform standard.
MySQL supports the following types of indexes:
1, B-tree index (also includes B+tree index, collectively
Do DBA more than three years, contacted many mainstream database products, but only had no chance to touch MySQL, today began to decide to self-study MySQL, to their own Chong Chong, first from the MySQL architecture began to learn.
The MySQL
According to the business needs, the MySQL performance and stress test should be tested.
Here I say the test method and the test procedure and the problem of the test error
I guess a lot of people like me. To test MySQL performance pressure, the
For deadlocks, MySQL does not provide a direct variable to represent. For the 5.5 version of Performance_shcema can provide the details of the lock (but we are still 5.0), for Innodb's own monitor innodb_lock_monitor its output is always output to
Before MySQL 5.0.2, MySQL was not strict about illegal or improper values, and it also forced them into legal values for data entry. In the MySQL 5.0.2 and later versions, the previous default behavior is retained, but you can choose a more
NDB is an "in-memory" storage engine that features high availability and good data consistency.
The ability to configure the NDB storage engine with multiple failover and load balancing options, but it is easiest to start with a storage engine at
MySQL error code table, according to the MySQL header file Mysql/include/mysqld_error.h collation. Wrong place, please correct me.
1005: Failed to create table
1006: Failed to create database
1007: Database already exists, failed to create database
1
MySQL employs a cost-based optimizer to determine the most solution to the processing of queries. In many cases, MySQL is able to compute the best possible query plan, but in some cases MySQL does not have enough information about the data to have a
In an optimized query, database applications (such as MySQL) mean the operation and use of tools. The purpose of optimizing queries is to use indexes, analyze queries using explain, and adjust the internal configuration of MySQL.
Any database
It took 1 days to successfully install the MySQL 5.0.27 ICC version on Debian Etch Linux and use JDBC to test Chinese success!
The key to the Chinese problem is to use all UTF-8 encoding, MySQL 5 release support UTF-8, but the default is
Set MySQL data synchronization (one-way & bidirectional) as a result of the company's business needs, Netcom and telecom data synchronization, to do a two-way synchronization of MySQL, write down the process, later used to turn it out, also posted
Original link: http://blog.chinaunix.net/u/29134/showart_480834.html
The performance tracker provided by the MYSQL5.0 family is really cool.
Pay attention to two points.
1, but the version after 5.0.37
The manual describes the following: (show
Recently, in the project development process, encountered the database deadlock problem, in the process of solving the problem, the author of the MySQL InnoDB engine lock mechanism understanding gradually deepened.
The case is as follows:
The
You cannot back up your data at any time, but when your data is lost, or if the files in the database directory are corrupted, you can only restore the files that you have backed up, and the data that is inserted or updated after that is powerless.
MyISAM types do not support advanced processing such as transaction processing, and InnoDB type support.Tables of the MyISAM type emphasize performance, which is performed more quickly than the InnoDB type, but does not provide transactional support.
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