This is often the case when designing databases, for example:
There isArticleThere is a type field in the table, which stores the article type, including 1 headlines, 2 recommendations, 3 hotspots, 4 images and texts..., 12, 13, etc.
There is an
MySQL Character Set: cp1252 West European (Latin1) to solve the garbled Problem
When you use phpMyAdmin In the VM space to operate the database, if the MySQL Character Set displayed on the phpMyAdmin homepage is cp1252 West European (Latin1),
In fact, this statement is not completely correct. First, the key value of query_cache in mysql is not a simple query, but a query with databasename and flag. This can be seen from the source code. I will not describe it here, but I will analyze it
Recently, MySQL on Windows 2003 experienced a failure in connecting to the database when it was running normally many times. This problem occurs when it was unable to connect to the database or stop or restart MySQL. Restarting the database also did
In my previous article # Practice Notes # configure PHPnow and WordPress locally, I have discussed PHPnow's local installation tutorial. However, PHPnow is a software program on the Windows platform and does not apply to the platform I am using.
1. database/table sharding
Obviously, the unlimited growth of a primary table (that is, a very important table, such as a user table) will inevitably seriously affect performance. Database sharding and table sharding are a good solution, this is
Syntax format:
EXPLAIN tbl_name
Or:
Explain select select_options
The EXPLAIN statement can be used as a synonym for DESCRIBE, or used to obtain information about the SELECT statement to be executed by MySQL.
The EXPLAIN tbl_name syntax is the same
Apache server optimization, PHP optimization, and Mysql Optimization
For program developers, the two most popular backend databases are MySQL and SQL Server. The most basic similarity between the two is data storage and query system. If you want to
BLOB is a large file. A typical BLOB is an image or sound file. due to their size, it must be processed in a special way (for example: upload, download, or store data in a database ). According to Eric Raymond, the main idea of processing BLOB is to
Copy codeThe Code is as follows: delimiter |
Drop function if exists IS_MOBILE |Create function IS_MOBILE (x VARCHAR (255) returns tinyint (1)BEGINDECLARE result TINYINT (1) DEFAULT 0;SET x = LCASE (x );If right (x, 4) = '.mp4 'THENSET result = 1;
Of course, you can browse in PHPMYADMIN. But there are omissions after all. So I wrote a script for comparing database differences (for PHP. Of course, the code is very simple and I will not explain it. paste the Code:
Copy codeThe Code is as
1. Use MyISAM instead of InnoDB
Completely false. counterargument reason:
In the original article, MyISAM is used by default. In fact, InnoDB has become the default table engine in MySQL 5.5.x.
In addition, the simple use of InnoDB is not a
Since the website system was launched, the data volume reaches 500 mb, nearly records. Database Operations are basically slow, and users will feel angry ~~ Then I posted this situation in the group, including the machine configuration and so on.
Introduction
MySQL is one of the most popular free open source programs in history. It is the backbone of the database for thousands of websites, and can use it (and Linux) as a powerful proof of exponential growth of the Internet over the past 10
First of all, I suggest you navigate through the problem. The php manual is rummaged over 1001 times to solve the problem.
I am Baidu, and there are a variety of answers from netizens.
First, correct Baidu's mistake:Copy codeThe Code is as
1. install and configure phpMyAdmin on the server
For the installation configuration method, see: http://www.jb51.net/article/15330.htm
After installation, go to the phpMyAdmin homepage, as shown in:2. Create a user (this step can be omitted if you
1. Back up data on the Management node.Ndb_mgm> start backup nowaitNdb_mgm> Node 3: Backup 4 started from node 1Node 3: Backup 4 started from node 1 completedStartGCP: 43010 StopGCP: 43013# Records: 2138 # LogRecords: 0Data: 53068 bytes Log: 0 bytes
Version: 5.5.19-winx64
1. Change the my-small.ini TO my. ini (please change according to your machine configuration)
2. Enter the following in the command line:\ Bin \ mysqld -- console press enter and you will see the following:
Mysqld: ready
PHP's processing of Chinese strings has been plagued by new programmers who are new to PHP development. The following briefly analyzes how PHP processes the length of a Chinese string:
PHP built-in functions such as strlen () and mb_strlen ()
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