This article attempts to describe the optimal selection from the perspective of the schema and index created by the data table. Optimal Data Types
The smaller the data, the better. Select the minimum data type that meets your needs. By saving
1. Download
Here:Http://dev.mysql.com/downloads/mysql/5.1.html SelectMysql-noinstall-5.1.xx-win32.zipDownload
2. decompress the package to a folder.
3. Install
Change my-huge.ini Copy to c: \ windows and rename it my. ini
In cmd(Run
Format
Description
%
Abbreviated name of a week
% B
Abbreviated month name
% C
Month, Value
% D
Day of the month with an English prefix
% D
Day of the month, numeric value (00-31)
1. Change the table.It may be that your account is not allowed to log on remotely, but only on localhost. At this time, you only need to log in to MySQL on the computer of localhost, and change the "host" entry in the "user" table in the "MySQL"
Run the yum install mysql command in Centos to install the database. After installation, the system prompts that the database cannot be found when running mysqld to start mysql. The directory of mysqld cannot be found through find/| grep mysqld,
Index type division, Mysql index Addition
Indexes are divided into single-column indexes and composite indexes.
A single-column index contains only one column. A table can have multiple single-column indexes, but this is not a combination index. A
After mysql 32-bit binary distribution is installed in linux, the mysql service is started directly without configuration files. Then use the configuration file/etc/my. cnf to configure the global variable and start it. It is found that mysqld_safe
The tee function of Mysql is used to record user operation records. Due to a large number of changes to mysql, such as deletion, modification, and addition operations, when it comes to the production environment, these operations are sometimes
This article introduces the database index, and its advantages and disadvantages. The features and applications of MySQL indexes are described in detail. This article analyzes how to avoid MySQL unavailability, how to use explain to analyze query
The MySQL server adopts a modular style, and each part remains relatively independent, especially in the storage architecture. Storage EngineManage data storage and MySQL indexes. Through the defined API, the MySQL server can communicate with the
Let's talk nonsense.Body
Today, someone needs to export an excel table from the database. This person is a non-technical engineer and needs:
Export the voting data of contestants from the 19th to the 25th in excel format.
OK. You can see this
1. log on to the mysql monitor command: cmd>Mysql-u root-pThen press enter to enter the password
2. the mysql configuration file is my. ini under the installation directory.
The slave database crashes directly, and the root user cannot log in.
BlackHole: The black hole engine. Any data written will disappear and is used to record the relay storage of binlog replication! How to install: Use the configure command with the -- with-blackhole-storage-engine option when installing MySQL. The
In MySQL, order by has two sorting methods:
1. Use ordered indexes to obtain ordered data
2. File Sorting
When using explain to analyze and query,Use ordered indexes to obtain ordered data displayUsing index. File Sorting displayUsing filesort.1.
1. Optimize SQL
1) Use show status to learn the execution frequency of various SQL statements.
Show status like 'com _ %'How many times Com_select and Com_insert are executed2) analyze inefficient SQL statements through Explain3) create an
Http://www.sun.com/bigadmin/content/submitted/mysql_smf_tip.jspLogin ing MySQL to Use With Service Management Facility (SMF)
William Pool (Puddle), October 2005.
The Solaris 10 OS uses the Service Management Facility (SMF) to handleservices.
Use the mysql nas table instead of client. conf for client Configuration
Here, you can also comment out clients. conf of radiusd. conf.# $ INCLUDE clients. conf
Uncomment the readclients of SQL. conf.
sql { ... readclients = yes ... }
In this way,
EnvironmentHardware: DELL 1950,146g sas 15 k rpms * 2, 8G RamSoftware: 2.6.9-55. ELsmp x86_64, mysql 5.1.x
SymptomTwo databases, one of which has more than 20 tables and the total table file size is less than 2 GB.The other is the logstore, where
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