Php4nagios the connection on the monitor page and then add a index.php,Http://nagios.xxxx.com/pnp4nagios/index.php/index.php/graph?host=localhostsrv=PINGAnd that's why I want to add this sentence rewrite ^/pnp4nagios/index.php/index.php/(. *) $/pnp4nagios/index.php/$1; The cause of a break;
Second, install Perl MySQL extensions
# yum Install Perl-class-dbi-mysql
Mysql paging the stored results for complex queries. Mysql paging the stored results for complex queries. It seems that there are very few people discussing pagination. are everyone addicted to limitm and n? In the case of indexing, the speed of limitm and n is sufficient. However, in the case of complex
details . Sixth step: Register Service mysqld--install MySQL Start the service with the net start MySQL command. Enter the Mysql-u root-p command: And then fill in the fifth step of the password that you entered when initializing the database, as shown in: Enter show databases under the MySQL command; , look at th
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 Web optimization.MySQL provides a slow query logging function, you can query the SQL statement time is greater than the number of seconds to write to the slow query log, daily maintenance can be slow query log information quickly and accurately judge t
MySQL and Oracle also have a data dictionary table, there is a separate library called Information_schema, to see the foreign key of a table to look up from the dictionary tablesuch as MySQL query the foreign key of a table, you can query the following wayUse INFORMATION_SCHEMA;Select Table_name,column_name,constraint_name,referenced_table_name,referenced_column_name from KEY_COLUMN_USAGE WHERE table_name =
Tags: os using SP AD on SQL C MySQL romUpdate Po_headerSet Total_fee = (Select Ip.payment-ip.post_feeFrom Po_header IPwhere ip.po_header_id = po_header_id)where trade_id in (Select trade_id from trade where shop_id = 2094;The above update script needs to be done in MySQL by InnerjoinUpdate Po_header p1 INNER JOIN(select po_header_id, (payment-post_fee) Total_feeFrom Po_header) IP onip.po_header_id = p1.po_h
There are two ways of paging queries in MySQL, one is the use of the count (*) method, the specific code is as follows
Copy CodeThe code is as follows:
SELECT COUNT (*) from foo WHERE b = 1;
SELECT A from foo WHERE b = 1 LIMIT 100, 10;
Another way is to use sql_calc_found_rows
Copy CodeThe code is as follows:
SELECT sql_calc_found_rows A from foo WHERE b = 1 LIMIT 100, 10;
SELECT found_rows ();
The seco
This article is a detailed analysis of the compatibility of MySQL syntax (using count in queries), the need for a friend under the reference
In simple terms, count and more fields are used in queries
Copy Code code as follows:
Select count (ID), id,name from table
It's embarrassing, my environment is 5.5, this is to get the result, but run to the server is notAl
name field).Natural connection: It can be divided into natural inner connection and natural outer connection .4.1 Natural internal connections:Left table natural join right table;Select * from join My_class;4.2 Natural external connectionsLeft table natural left/right join right TableSelect * from Left join My_class;Multi-table Connection: A table inner join B table on condition left join C table on condition ...Execution order: A table is connected to the B table, to get a two-dimensional t
Mysql Tutorial: mysql_stat () query the current system status of the MySQL server
Definition and usage
The mysql_stat () function returns the current system status of the MySQL server.
If yes, the function returns the status. If it fails, false is returned.
Syntax
Description of the mysql_stat (connection) parameter
Connection is optional.
like ' f% '; +---------+ | Word | +---------+ | Frank | | FlicKr | +---------+ 4 rows in Set (0.05 sec) mysql> SELECT * from case_test WHERE word COLLATE latin1_bin like ' f% '; +---------+ | Word | +---------+ | Froogle | | Flickr | +---------+ 2 rows in Set (0.00 sec) Mysql> SELECT * from case_test WHERE word like ' f% ' COLLATE latin1_general_cs; +---------+ | Word | +---------+ | Frank | | FlicKr | +--
Are you still ashamed to read Ho Dengcheng's lock-processing analysis article?Still in because of the master of the clerical error, into a deep confusion?As long as you have more than 5.6.16 version of MySQL, lock monitor you deserve to have!Quick StartOpenSet global Innodb_status_output=on;set global innodb_status_output_locks=on;Real:Mysql> Show CREATE TABLE My_test1_0\g1. Row ***************************T
/directory to ensure that
[Root @ client100 ~] # Cd/var/log/zabbix/cache/
[Root @ client100 cache] # ll-Rw-r -- 1 zabbix 0 Mar 22 07:25 FromDualAgentCache.192.168.1.100.cache
# Note: it is normal that the file is not written, because the program automatically clears the file, but if the file keeps increasing, it indicates that the configuration is incorrect, data not sent
(6) The following error is reported. The processing method is as follows:
12933: 06:52:06. 005-INFO: FromDual Performance
This article mainly describes the memory usage when MySQL returns a large number of results in PHP based on principles, manuals, and source code analysis. at the same time, the usage of MySQLCAPI also involves yesterday, some colleagues in the PHP discussion group (276167802 verification: csl. if you are interested, you can join in to discuss this article mainly from the principle, manual and source code analysis when
MySQL temporary tables can be used to accelerate queries. The following describes how to use MySQL temporary tables to accelerate queries.
Sort a subset of a table and create a MySQL temporary table, which sometimes accelerates query. It helps avoid multiple sorting operatio
, which avoids longer locking of the system tables.25. Avoid using cursors as much as possible, because cursors are inefficient and should be considered for overwriting if the cursor is manipulating more than 10,000 rows of data.26. Before using a cursor-based method or temporal table method, you should first look for a set-based solution to solve the problem, and the set-based approach is generally more efficient.27. As with temporary tables, cursors are not unusable. Using Fast_forward cursors
table, which avoids longer locking of the system tables.25. Avoid using cursors as much as possible, because cursors are inefficient and should be considered for overwriting if the cursor is manipulating more than 10,000 rows of data.26. Before using a cursor-based method or temporal table method, you should first look for a set-based solution to solve the problem, and the set-based approach is generally more efficient.27. As with temporary tables, cursors are not unusable. Using Fast_forward c
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.