Use logrotate to rotate MySQL logs in Linux

Log rotation is especially useful for log files with fixed file names, such as MySQL error log, regular query log, slow query log, and so on. Linux system has a very easy to use according to Logratate can achieve automatic rotation, this article

apache+mysql+php Quick Install

Although a lot of online, or here to record their own installation process, and some experience, do not have to install and then everywhere to find. First say MySQL, because he can say completely independent and Apache, PHP installation is not

c\c++ access to MySQL

111.cpp: Defines the entry point for the console application.//#include "stdafx.h"#include #include #include int main (int argc,char* argv[]){Char *user = "root", *pwd = "123456", *dbname = "Chardb";MySQL MySQL;Mysql_res *mysql_ret;Mysql_row

Connect MySQL database through PHP, create database, CREATE table

Connect MySQL database via PHP $conn = mysql_connect("localhost","root","password") or die("无法连接数据库"); mysql_select_db("table" ,$conn) or die ("找不到数据源"); Create MySQL database via PHP $conn = mysql_connect("localhost","root","password") or

Eight "best hands" to optimize MySQL database performance

This paper discusses the way to improve the performance of MySQL database, and gives the concrete solution from 8 aspects. 1, select the most applicable field properties MySQL can support a large amount of data access, but generally speaking, the

Simplifying MySQL management with Enterprise monitor

For database administrators, monitoring the database is of great importance, and the open source database has consistently fared poorly compared to commercial database products such as Oracle and SQL Server, but after MySQL launched the Enterprise

How to fix a MySQL database table

You may be in the process of using MySQL, all kinds of accidents cause damage to the database table, and this data is often the most recent data, it is often impossible to find in the backup data. This chapter will show you how to fix the table

MySQL Full-Text Search Boolean search

Using in Boolean mode to modify the program, MySQL can also perform Boolean Full-text search: mysql> SELECT * FROM articles WHERE MATCH (title,body)   -> AGAINST ('+MySQL -YourSQL' IN BOOLEAN MODE); +----+-----------------------+--------------------

MySQL Architecture begins

Opening The MySQL architecture differs from other databases and is useful for most purposes. MySQL is not perfect, but it is flexible enough for some demanding environments. such as Web applications. MySQL can also strengthen embedded applications,

How to Master dynamic table features in MySQL database

If a MyISAM table contains any variable-length columns (VARCHAR, blobs, or textdynamic), or if a table is created with the row_format=dynamic option, the dynamic storage format is used. This format is a bit more complicated, because each row has a

The MySQL database looks for slow execution SQL statements

When you start MySQL, add the parameter--log-slow-queries to log the SQL that executes longer than long_query_time seconds: /usr/sbin/mysqld--basedir=/usr--datadir=/var/lib/mysql --user=mysql--pid-file=/var/run/mysqld/mysqld.pid

MySQL Chinese reference manual

This is a development of the Linux file system, Linux can be the MySQL database as a file system to deal with. The development team would like to get more advice, as the following article translates from: In fact, this is not the usual file system,

The garbled problem in database porting in MySQL database

When MySQL transplants data containing Chinese, it is easy to get garbled problems. Many are present when transplanted from mysql4.x to mysql5.x. MySQL's default character set is Latin1, and when using mysql4.x, many people are using the latin1

The execution efficiency of MySQL random fetching data

I found a problem last night when I was writing a random joke from a "passing" application, my goal was to randomly draw a joke from the joke table (about tens of thousands of data volumes) and show that my SQL was initially as follows: SQL code

A detailed explanation of the date and time functions in MySQL built-in functions

The following example uses the time function. The following query selects all records with Date_col values for the last 30 days: mysql> SELECT something FROM tbl_name   -> WHERE DATE_SUB(CURDATE(),INTERVAL 30 DAY)  Note that this query can also

Sphinx+mysql Full-Text Search architecture and installation

Objective: This paper describes a TENS data retrieval (search engine) architecture which has been tested by production environment. This article only lists the content excerpts from the previous chapters and does not provide full text content. On

Easily manage multiple MySQL instances with instance Manager

One, the MySQL database instance Manager Overview: 1, the MySQL database instance Manager (IM) is through the TCP/IP port running background program, used to monitor and manage the MySQL database server instance. 2, if im hanging, then all the

Ameoba for MySQL read-write separation and load balancing

Amoeba Introduction:Amoeba is a proxy that uses MySQL as the underlying data store and provides the MySQL protocol interface to the application. It responds centrally to the application's requests, sending SQL requests to a specific database based

Stress test the database with MySQL self-mysqlslap tool

Mysqlslap is a tool that comes with MySQL and does not need to be installed separately:Parameters:-concurrency represents the number of concurrent, multiple can be separated by commas, concurrency=10,50,100, the number of concurrent connection

Change mysql password in Centos, centosmysql

Change mysql password in Centos, centosmysql1. Modify MySQL Logon Settings: # Vim/etc/my. cnfAdd the following sentence: skip-grant-tables, for example: [Mysqld] datadir =/var/lib/mysqlsocket =/var/lib/mysql. sock2. Restart mysql # Service mysqld

Total Pages: 3233 1 .... 865 866 867 868 869 .... 3233 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.