MySQL Log Management Because the Rizhi file is an important reference for mastering database operation. Therefore, the maintenance of log files is also very important. mysql Log type: error log, normal query log, binary log, slow query log 1. Error
1 Character Set issuesProblem: Executing the./manage.py createdb command in Django appears:Django.db.utils.OperationalError: (1366, "Incorrect string value: ' \\xC4\\x9A\\xC2\\x81vi ... ' for column ' file ' at row 1" )To view the MySQL
mysql> ShowGlobal status;The MySQL server can be listed to run various status values, in addition, query the MySQL server configuration information statement:Mysql> Showvariables;One, slow queryMysql> showvariables like '%slow% ';+------------------+
The number of threads in the MySQL server needs to be within a reasonable range to ensure that the MySQL server runs smoothly and healthily. Threads_created indicates the number of threads created, and the process status of the MySQL server can be
First, performance detection and bottleneck analysis
1 common commands for performance detection
Show status
Display status information, reference: Mysql Show status Command detailed
Show Processlist
View current SQL execution, including
There are a lot of basic commands in MySQL, and the show command is one of them, and it's easy to confuse the use of SHOW commands among many users, and this article brings together the many uses of the show command.A. Show tables or show tables
After starting MySQL, log in as root for MySQL[Email protected]:~# mysql-uroot-prootMysql> Show variables like ' character% '; #执行编码显示+--------------------------+----------------------------+| variable_name | Value |+--------------------------+------
MySQL TuningHardware configurationNetwork bandwidthMySQL Run parametersSlow query logNetwork architectureMultiple instances (multiple database services running on a single server)Sub-LibrarySub-tableWhen a database server handles requests from
Overview: configure the mysql database on the linuxvps host. because the InnoDB engine is started using the database installed in yum by default, and its etcmycnf configuration is not very suitable for our vps host, this article explains in detail
Install and configure mysql SQL code in suse rpm-qa | grep mysqlCheck whether mysql has been installed, or check whether mysql has been installed in yast. I indicates that yast has been installed.> software Management --> Filters: Select RPM Groups -
Install and configure mysql5.51in windowsnoinstall. First, obtain mysql5.5. Download the Community edition for free .? What is the current address of mysql5.5? Dev.mysql.comdownloadsmysql5.5.html # downloads ?? Mysql5.5 _ noinstall_32-bit: cdn.
Mysql viewing encoding method topic bitsCN.com
Topics on viewing encoding methods in Mysql
I,
View the character set of a database
Show variables like 'character/_ set/_ % ';
Output:
+ -------------------------- + -------- +
| Variable_name | Value |
MySQL tuning bitsCN.com
Optimization and optimization:
1. database design and planning-it will be difficult to fix it later, estimate the data volume and what storage engine to use
2. data application-how to retrieve data and optimize SQL
MySQL version is mysql5.6.22, installation environment Windows7.1. Use this query log to find SQL statements of efficiency problems and record them for monitoring.You can query and set the slow query log using the following statement(1) Check if the
Today in the deployment of a system, the page appears garbled. So all kinds of Baidu (have been used in the same way before, but did not affect the use),Let's do an experiment.This server system is Centos6.3,lamp environment all with yum
This paper mainly introduces the realization of MySQL master-slave copy function under the environment of single-database multi-instance.Basic Flow:1.MySQL Master-Slave Replication Introduction2. Master-Slave replication database Combat environment
Written in front
This blog to undertake the last MySQL default engine InnoDB (a) to explore the MySQL database InnoDB storage engine
MySQL default storage engine InnoDB Introduction
InnoDB is the first MySQL storage engine to
One, MySQL connection optimization1. View connection parameters (show variables)mysql> show variables like ‘%connect%‘;+-----------------------------------------------+-----------------+| Variable_name | Value
Environment: Server Version:5.6.21-log MySQL Community Server (GPL)Prerequisite Summary:What is the role of innodb_rollback_on_timeout? A: Transaction B is a rollback of all statement or the last statement within a transaction after a lock wait time-
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.