Original: MySQL database installation and common optimization settingsThis article is based on the gifted network course collation, web-oriented developers, content to practical, professional DBA can bypass.If you're in a big company, you might have
View the version of the database serverSelect version ();Create a databaseCreate DATABASE dbname Character_set=utf8 collate=utf8_general_ciDeleting a databaseDrop Database dbname;Select the database to useMysql>use dbname;View the table names that
MySQL garbled the root of the problem is incorrect MySQL character set, this article summarizes the command to view the MySQL character set. This includes viewing the MySQL database server character set, viewing the MySQL database character set, and
1. the INNODB Storage engine of background processes consists of four I/O threads, one master thread, and one lock monitoring thread, with one error monitoring thread. The following describes that the innodb_file_io_threads parameter value is 8 and
The root cause of mysql Character Set query and Setup of MySQL garbled characters is that the MySQL character set is improperly set. This article summarizes the commands for viewing the MySQL character set. Including viewing the character set of the
Query Mysql status
# Query database connection show full processlist; show status like '% Max_used_connections %'; show status like '% Threads_connected %'; # current connections show status like '% table_lock % '; # Table lock show status like
Verification of the MyCAT Character Set
The default Character Set of MyCAT is UTF8.
The following describes how to check the log to verify the effect of different MySQL client character sets and server character sets on MyCAT.
There are three main
MySQL Slow Query Log)
Like most relational databases, log files are an important part of MySQL databases. MySQL has several different log files, such as error log files, binary logs, common logs, and slow query logs. These logs help us locate the
Like most relational databases, log files are an important part of MySQL databases. MySQL has several different log files, such as error log files, binary logs, common logs, and slow query logs. These logs can help us locate the internal issue of
Analyzing SQL execution overhead is an important means to optimize SQL. In MySQL databases, you can configure the profiling parameter to enable SQL profiling. This parameter can be set at the global and session level. The global level applies to the
MySQL system optimization and problem search bitsCN.com
MySQL system optimization and problem search
Performance Optimization Related status parameters
Show status like 'value ';
Connections
Uptime start time
Show_queries slow query
Here we will briefly introduce the cache-related parameters of MariaDB.Have_query_cacheMariaDB [(none)]> show variables like 'have _ query_cache ';+ ------------------ + ------- +| Variable_name | Value |+ ------------------ + ------- +|
In the previous article export data from Hive to Mysql, although hbase data is successfully exported to mysql through hive, however, we encountered Chinese garbled characters. 1. mysql encoding mysqlshowvariableslikecollation _ %; + -----------------
MySQL server connection number is not to achieve the maximum of 100% for good, or to specific problems specific analysis, the following on the MySQL server the maximum number of connections to the reasonable set up a detailed analysis for your
MySQL has five common log types: error log, binary log, query log, slow check log, and relay log.
One, error log
The error log contains four types of information:(1) Information during the process of server startup and shutdown;(2) Error message
view MySQL database connection count, concurrency, and related information1.mysql> Show status like ' threads% ';+-------------------+-------+| variable_name | Value |+-------------------+-------+| threads_cached | 58 || threads_connected | 57 | #
mysql5.6 modified character encoding, Err:illegal mix of collations for operation ' Concat '1. Cause of the problem: build the environment to initialize the MySQL when you see the MySQL configuration file [cloent] under the settings encoded as
1.1.1.Related Conceptsby default, MySQL uses asynchronous replication, that is, the transaction execution on master and the copy operation on the slave do not need to be synchronized,master You do not have to wait for The replication thread on
Error log: Errors logs
Query log: Querying logs General Query Log/slow query LOG: Statements that have exceeded the set time (Long_query_time) or have not gone through the index
Binary log: Binary logs that record information about the data
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.