Nowadays, developers are constantly developing and deploying LAMP (Linux? , Apache, MySQL, PHP/Perl) architecture applications. However, the server administrator often has no control over the application itself, because the application is compiled
Back up database
Database files are very important. If one day the server system crashes and is not restored, it will cause a huge loss. Therefore, we need to back up the database occasionally.
After selecting the database to be backed up,
Although the query speed is slow for many reasons, if some optimization is adopted, the query problem can be solved to a certain extent.
There are many reasons for slow query speed. The following are common causes:
1. No index or no index is used
Backup features:
1. In most cases, this method is almost considered hot standby. It does not need to close the service, but only needs to set read-only or similar restrictions.
2. All storage engines based on local disks, such as MYISAM, InnoDB, and
Q: If log-bin is commented out, an error is reported during mysql startup.
/Usr/local/mysql/bin/mysql-u root-p login mysql management appears
Copy content to clipboard
Code:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '
-- SQL Regular Expression replacement function
The Code is as follows:CREATE function dbo. regexReplace(@ Source ntext, -- original string@ Regexp varchar (1000), -- Regular Expression@ Replace varchar (1000), -- replace value@ GlobalReplace bit = 1,
MySQL stored procedure statements have three standard looping Methods: while loop, LOOP, and repeat loop. There is also a non-standard loop method: GOTO, but it is best to use this loop method, it is easy to cause program confusion, here is a good
If you are running a Web application that uses MySQL, it can store passwords or other sensitive information in the application. Protecting this data from access by hackers or prophers is an important concern, because you cannot allow unauthorized
Server Environment Liunx AS4 + PHP5 + Mysql5 + Apache 2When the TOP command is used to query the system performance, it is found that the CPU often reaches 100%.I thought it was a DDOS attack ...... Firewall installed (ineffective)Again, I started
Error No:2003
Problem Analysis:
Unable to connect to the MySQL server, possible situation:
1. the MySQL service is not started. It is generally caused by the failure of MySQL to start in case of exceptions, such as no available disk space or
Error No:1040
Problem Analysis:
The number of connections exceeds the value set by MySQL. It is related to max_connections and wait_timeout. The larger the value of wait_timeout, the longer the idle waiting time for the connection, which leads to
Tutorial on Mysql of kangfire website construction Institute (bkjia.com:
Reference content is as follows:1. server infomation provides basic information about the connection, SERVER, and client. 2. service control starts/stops the
, View and start the MySQL ServiceAfter MySQL is installed in Windows XP, it automatically starts the service and has a shortcut connection to the client in the Start Menu, as shown in Figure 4.1.Fig 4.1You can view it in the Service Manager of
(1), max_connections:Number of customers allowed simultaneously. Increase the number of file descriptors required by mysqld. This number should be added. Otherwise, you will often see the too connector connections error. The default value is 100. I
I believe that you have had reinstallation experience when using MySQL. If you reinstall MySQL, it is basically the last step. Unless you reinstall the operating system, the reason is that the registry in the system is not deleted. The following is
Currently, I have read High Performance MySQL Second Edition and read the Multiversion Concurrency Control Section to explain how InnoDB implements MVCC. It is a little simple and hard to understand (of course, you may be stupid enough to understand
Several common mysql Functions/*************************************** **************1. Determine whether the string is returned from Chinese characters: 1-0-non-Chinese Characters**************************************** *************/Drop function
In MySQL, databases and tables correspond to directories and files under those directories. Therefore, the sensitivity of the operating system determines the case sensitivity of the database and table names. This means that the database and table
Use EXECL to convert TimestampThe formula is:
=(xxxxxxxxxx+8*3600)/86400+70*365+19
Use a MYSQL statement to explain the timestampSyntax example:
SELECT FROM_UNIXTIME(1234567890, '%Y-%m-%d %H:%i:%S')
Appendix:In mysql, the storage type of a time
I have previously published the article "batchSQL, a batch SUBSTITUTION OF EXPRESSION variables". Some children's shoes say that the csv import function provided by phpMyAdmin is not better for data import. Indeed, it is very good to use this
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