Let's startTmp_table_size:
It specifies the maximum value of the temporary internal memory table, and each thread must be allocated. (The actual limitation is the minimum values of tmp_table_size and max_heap_table_size .) If the temporary memory
1. View
A view is a virtual table. Unlike tables that contain data, a view only contains queries for dynamically retrieved data during use (that is, including an SQL query). It is only a facility for viewing data stored elsewhere.
Basic View
MySQL countThe Database Engine depends on how MySQL is compiled during installation. To add a new engine, you must recompile MySQL. By default, MySQL supports three engines: isam, MyISAM, and heap. The other two types of InnoDB and Berkley (bdb) are
Turn: http://www.21andy.com/blog/20071102/655.html
Command for backing up MySQL databaseMysqldump-hhostname-uusername-ppassword databasename> backupfile. SQL
Back up the MySQL database in the format of a table with deletionBacking up a MySQL
Check the default link encoding of MySQL on the master and slave servers, especially the slave server. Otherwise, garbled characters may occur during synchronization.
[Mysqld]
Server-id = 2Slave-Skip-errors = allDefault-character-set =
When I was learning new technologies, it was really depressing to configure the environment. But fortunately, many of my friends on the Internet are very helpful to me.
1. install and configure Apache (install it to D: \ phpapache \ apache2.2)1. It
Basic MySQL operations:TestFirst, remember to add the; (semicolon) at the end of each command)1.Export the entireDatabaseMysqldump-u username-p -- default-character-set = Latin1 Database Name> exported file name (the default database encoding is
Modify the my. ini file
Add
Default-character-set = gb2312
Set database character sets
Alter database da_name default Character Set 'charset'
1) set the database encoding/etc/My. CNF[Mysqld]Default-character-set = GBK...[Client]Default-character-set
In SQL, we sometimes use in the query statement to query related data. For example:
Select * from goods where goods_id in ('20160301', '64', '20160301', '37', '20160301', '20160301', '20160301 ', '123', '123', '123', '123 ')
In the preceding
Char and varchar types are similar, but they are stored and retrieved in different ways. In mysql5.0.3, their maximum length and whether to retain trailing spaces are also different.
Char and varchar define the maximum length of a string. For
This parameter means that before the table is closed, the update operation of the table refers to the disk with the new data instead of the index to the disk, and the changes to the index are recorded in the memory. In this way, the MyISAM table can
MySQL manual says:
In MySQL 5.x, the length of the char and varchar types declaration indicates the maximum number of characters you want to save. For example, char (30) can occupy 30 characters. In the case of GBK internal code, a Chinese character
There are two tables, Table
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->CREATE TABLE `a` (`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,`fid` smallint(6) unsigned NOT NULL DEFAULT '0',`cnt`
Repair table 'table _ name' is used to repair damaged tables.
Myisamchk table. myi is used to repair damaged index files.
Optimize table is used to recycle idle database space. When the data rows in the table are deleted, the occupied disk space is
In most cases, when the alter table operation is performed, a temporary backup of the target table (temporarily named a) is copied (temporarily named B). The alter operation is performed on the backup file (B) and then delete the target table (a).
Today, you need to configure trixbox web services to access databases on another machine. You must use the permissions granted to mysql users. Something you did not want to learnI had to use it. By the way, copy the content in the White Paper for
Mysql> delimiter //Mysql> Create Function testfunction (id int) returns int-> Begin-> Declare TT int;-> Set TT = 0;-> Select sum (total) into TT from selectinto1 B where B. ID = ID;-> Update selectinto2 a set a. summ = TT where a. ID = ID;-> Return 1
1. MySQL Command Line Mode settings:Desktop> my computer> Properties> environment variables> New>Path = "; Path/MySQL/bin;" where path is the installation path of MySQL.2. A brief introduction to how to access MySQL through the command line:1. C:/>
Suddenly, I was a little interested in. net connection to the MySQL database, so I went to the Internet to find information, learn how to install MySQL, and how to use MySQL. I finally got it done!
The final result is to display the data of the data
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