From yesterday, I started monitoring MySQL and found that
It is strange that in the MySQL configuration file, the configuration prohibits domain name resolution -- skip-name-resolve. For details, see how MySQL uses DNS, this is a MySQL bug, but
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. access method after successful MySQL Installation
/The first method is to enter:
Click Start ---> AllProgram---> MySQL --> MySQL server5.0 ---> MySQL command line Client click
Enter Password: Root press ENTER
You can enter the MySQL
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
Step 1: Download the MySQL driver package
Official is http://dev.mysql.com/downloads/connector/net
Step 2: Introduce Components
The downloaded file is a compressed file that is decompressed to a local disk. Find the mysql. Data. dll file in the bin
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
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
By default
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Select * From mysql. user;
Only global permissions are exported. To view the specific permissions of each user, use
Code highlighting
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
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
This article focuses on the combination of two MySQL commands. It will create a new data table with the same structure and data based on the original data table.
This helps you quickly copy tables as test data during development without having to
Copy a MySQL file, that is, copy ***. FRM (table structure file ),***. MYD (data file ),***. myi (index file) (you can recreate an index file without copying it ).
For example,
I have a foo table in the test database. The data structure is as
1. the MySQL view operation is only supported by the new version of the database. The advantage of the view operation is that it can simplify the query of the database. In particular, we can create a view for some frequently queried data tables
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:/>
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