ThinkPHP permission authentication Auth instance details, thinkphpauth
This article provides an in-depth analysis of the implementation principles and methods of ThinkPHP permission authentication Auth in the form of instance code. The specific
This article mainly introduces MySQL database optimization, including MySQL database performance optimization, this article describes the optimization of common SQL statements and the actual operation solution for MySQL database to optimize the
View database status:service mysqld Status
Start database:service mysqld start
Access to the database:mysql-u root-p123456;
List database: showdatabases;
Select database: UsedatabaseName;
List table: showtables;
Displays the properties of the
Database optimization techniques, what do you do:
· Use a persistent connection database to avoid connection overhead. If you cannot use a persistent connection and you are starting many new connections to the database, you may want to change the
Task backgroundReceived Kingsoft alarm text message, said a database capacity has reached 90% of the watermark, so log on to the console to see the details.When the console first discovers that the disk capacity of each day does fluctuate, it proves
Method 1,Analyze table:This statement is used to analyze and store the keyword distribution of a table. During parsing, the table is locked with a read lock. This is useful for MyISAM, BDB, and InnoDB tables.Method 2,CHECK TABLE:Check if one or more
1. How to log into MySQL databaseMysql-u username-p2. How to turn on/off MySQL serviceService MySQL Start/stop3. Check the status of MySQLService MySQL Status4, how to display a number of all databasesShow databases5. How to get the names and types
The storage engine in the database is actually a set of tables that use the engine, and the table in the database sets what storage engine, so the table has different "effects" in terms of how the data is stored, how the data is updated, the
Performance optimization is done by some effective means to improve the speed of MySQL, reduce the amount of disk space occupied. Performance optimizations include many aspects, such as optimizing query speed, optimizing update speed, and optimizing
How MySQL improves the speed of bulk importA recent project test, there are several MySQL database table data records reached hundreds of thousands of, in the building test environment to import test data, very slow.Search on the Internet, there are
1. To optimize the query, avoid full-table scanning as far as possible, and first consider establishing an index on the columns involved in the Where and order by.2. You should try to avoid null values in the WHERE clause, otherwise it will cause
1. To optimize the query, avoid full-table scanning as far as possible, and first consider establishing an index on the columns involved in the Where and order by.2. You should try to avoid null values in the WHERE clause, otherwise it will cause
1. How to log in to MySQL databaseMysql-u username-p2. How to turn on/off MySQL serviceService MySQL Start/stop3. Check the status of MySQLService MySQL Status4, how to display the number of all databasesShow databases5. How to get the names and
MySQL free spaceSome tables in the production system use Delete to delete some rows and find that the space is not releasedReason: The principle of high water mark generation by analogy with OracleWorkaround:1. Execute OPTIMIZE table name;Attention:1
The following article mainly describes the MySQL database simple and practical optimization of the implementation of the specific methods, including how to regularly analyze and check the table, and how to properly optimize the table, the following
1, to optimize the table
2, Analysis of the table (analysis and storage of MyISAM and BDB table in the distribution of keys)
3, check the table (check the table error, and update the key for the MyISAM statistics)
4, repair the table (repair the
Process with analyze and deal with them on a regular basis
ANALYZE [Local | No_write_to_binlog] TABLE tb1_name[, Tbl_name] ...
Define Tables Analyze Table table_name
CHECK TABLE Tb1_name[,tbl_name] ... [option]...option = {QUICK | FAST | MEDIUM |
1. To optimize the query, avoid full-table scanning as far as possible, and first consider establishing an index on the columns involved in the Where and order by.2. You should try to avoid null values in the WHERE clause, otherwise it will cause
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.