Databases are IO-intensive applications whose primary responsibility is data management and storage. And we know that the time to read a database from memory is a microsecond level, while reading an IO from a common hard disk is at a millisecond
Programme I:
1. Enter the:mysql> state
2. Choose MySQL database:mysql> use MySQL;
3. Change user table Data:mysql> Update user set Password=password (' New password ') where user= ' root ';
4. Activation permission:mysql> FLUSH privileges;
5. Exit
I'll just say a few things about the MySQL database after the installation of the individual problems encountered
I have previously installed MySQL does not seem to have to start the service manually, but also forgotten, but I last to the company
All of the following runs through the MySQL 5.5 command line:
To view MySQL-supported character sets:
Copy Code code as follows:
Show CharSet;
View Character Set:
Copy Code code as follows:
Status
The following
The original Linux under the MySQL default is the table name is case-sensitive, through the following settings, you can make MySQL does not distinguish table name case:1, with root login, modify/etc/my.cnf;2, under the [Mysqld] node, add a line:
Scene:Main Library Db:utf8 Character setDB:GBK character set for standby library
Demand:Verifies that the primary data is consistent and fixes
Validation process:Set the main library connection to UTF8, set the standby connection to GBK, query
First look at the section MySQL query article reply statement:
Copy Code code as follows:
#查询文章回复
-- ----------------------------
--Procedure structure for ' sp_select_reply_article '
-- ----------------------------
DROP PROCEDURE
picture, file, binary data never put in MySQL database。Many people feel that since the database supports BLOB-type data, it's definitely not wrong to cram files into a BLOB field!? Wrong, not like this! Otherwise, in many database languages, it is
Other enforcement actions, priority actions are as follows:
MySQL Common hint
For friends who often use Oracle, it is possible to know that Oracle has a wide range of hint features and provides many ways to optimize SQL statements. Similarly, in
So yesterday I seriously did a bit more function, can be a variety of search engine statistical analysis. Can be viewed in multiple time periods. In fact, the code is very simple, in order to more concise, code compression to 6k. Divided into 6
First step:Add the attribute "Usegeneratedkeys" and "Keyproperty" in the MyBatis mapper file, where Keyproperty is the property name of the Java Object!
INSERT INTO Spares (spares_id,spares_name,
spares_type_id,spares_spec)
New installed Windows7 64-bit system, equipped with many things, there is always such a son of Congi, yesterday in the beginning to decorate Php+apache, echo phpinfo () completely no problem, but the once connection MySQL will render the page is
This article illustrates the method of implementing object persistence layer based on MySQL database in PHP. Share to everyone for your reference. Specifically as follows:
Whim, did a bit of PHP object to the database simple persistence layer.
PHP
Yesterday, a colleague in the PHP discussion group mentioned that he did a project because the MySQL query returned too many results (up to 100,000), resulting in insufficient PHP memory. So, he asks, is the data already in memory before executing
This article describes the Java method for invoking the MySQL stored procedure. Share to everyone for your reference. Specifically as follows:
The test code for the database is as follows:
1. New Table Test
CREATE TABLE Test (
field1 int
This article describes the PHP query MySQL database and save the results to the array method. Share to everyone for your reference. The specific analysis is as follows:
The MYSQL_FETCH_ASSOC function is mainly used here.
The MYSQL_FETCH_ASSOC
In front of the site an article introduced how to achieve the publication of micro-blog said: Php+mysql+jquery implementation of the release of Micro-blog program--jquery, this example will be based on its database structure, the dynamic way to
In the practical application, we want to manage a customer classification, to achieve the classification of customers to increase, delete and modify operations, how to make these operations become more user-friendly, so that users to operate more
The example of this article describes the method of Php+mysql combining Ajax to realize the point-praise function. Share to everyone for your reference. Specifically as follows:
To achieve the point of praise function, there are a variety of ways
The example of this article describes the implementation of Php+mysql insert operation. Share to everyone for your reference. Specifically as follows:
Copy Code code as follows:
Insert Operation
if (!isset ($_post[' submit ')) {
If
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