For some time recently, company's server every once in a while (about 24 hours), will appear inaccessible situation, and then restart the server, everything is back to normal, has not known what is the problem, so asked the engine room engineer, he
Turn on caching, set cache size, and implement the following:
1, modify the configuration file, Windows under the My.ini,linux is my.cnf;
On the last append to the configuration file:
The code is as follows
Copy Code
One, slow query log configuration
Turn on the slow query log to configure the sample:
/etc/mysql/my.cnf[Mysqld]Log-slow-queries
Add the above configuration entry in the MY.CNF configuration file and restart the MySQL service, when the MySQL slow
Mysql Installation
Installation
Yum-y install MySQL mysql-server php-mysql perl-dbd-mysql perl-dbi php-gd php-mbstring
Start
Service mysqld Start
Set Password
mysqladmin-u root password ' set '
Set UTF8 Universal code, add the following two
Often see a user to ask some about PHP and XML, database combination of the use of posts, but also often see some beginners
Mix the PHP code with the HTML code, and then when the error can not find the error, the rush, I will give a big
Home about
If you specify on DUPLICATE key UPDATE and the insert row causes duplicate values to occur in a unique index or primary key, the
Row old row update. For example, if column A is defined as unique and contains a value of 1, the following two
Database operations are a major bottleneck in today's Web applications. Not only do DBAs (database administrators) need to worry about a variety of performance issues, but programmers are also trying to make accurate structured tables, optimize
1. Write the main MySQL docker file
Create a new folder named Mysql-master-v1. Create a new file Dockerfile and master.cnf in the folder Mysql-master-v1. The editor that I recommend is Visual Studio Code. Use the editor to set the encoding of these
How to download:
I'll go to MySQL first. Download the latest version of mysql-Link: https://www.mysql.com/downloads/
Enter this interface to download:
Downloads–>mysql Community Edition (GPL) (This is free edition, of course, the rich can be
For operations on string positions, the first position is marked as 1.
ASCII(str)
Returns the str ASCII code value of the leftmost character of the string. If
str It is an empty string, return
0 . If
str Yes
I. OverviewThe event Scheduler is another feature added in MySQL 5.1 that can be used as a timer Task Scheduler to replace some of the timed work > energy that can only be done with the operating system Task Scheduler. For example, the Crontabe in
This article describes how to read and write a MySQL database in a shell. This paper mainly introduces how to connect the MySQL database in the shell, how to create the database in the shell, create the table, insert the CSV file, read the MySQL
A common web site often need to query n SQL statements to get the results of the page, when the Web site access speed is slow and the front-end done a lot of optimization work, the database bottleneck of the search is also an important part of the
One:
Php-mysql is PHP operation MySQL Database The most original Extension, php-mysqli I representative of improvement, to mention the relative advanced function, in the case of Extension, itself also increased security. and PDO (PHP data Object) is
Next: MySQL uses mysql-udf-http efficiency test notes, this time not using the rest architecture, but using: libmemcached and Memcached_functions_mysql, the test version is:
Libmemcached-0.34.tar.gz and memcached_functions_mysql-0.9.tar.gz, other
The query is the most problematic database response. Most databases now provide the means to help with performance analysis. Oracle, for example, will help you find the slow statements directly and provide an optimization solution. In MySQL, you
The importance of system logs, I believe everyone has a deep understanding, when a fault occurs, the first time is to view the relevant error information and log information, to locate the problem, you can also based on the log, analyze logs to
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