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
Author: November 10 [E.S. T] Source: evil baboons. China
1. The methods described here are mainly applicable to forums such as VB.TELNET can be used to export the database on the existing server, and then import the data to another server. This
There are many application projects. At the beginning, MySQL Databases can basically meet various functional requirements. As the number of application users increases and the amount of data increases, MySQL gradually becomes overwhelmed: the
This forum article (CCID technical community) focuses on the alternative attack methods for MySQL database users with an empty root password. For more information, see the following:
1. Connect to the mysql server of the other party
Mysql-u root-h 19
MySQL supports a large number of column types, which can be divided into three types: Number type, date and time type, and string (character) type. This section first provides an overview of available types, summarizes the storage requirements for
Because mysql_real_escape_string requires MySQL database connection, you must connect to the MySQL database before calling mysql_real_escape_string.
PHP:Function mysqlClean ($ data){Return (is_array ($ data ))? Array_map (mysqlClean, $ data):
1. MySQL concurrency and Isolation Control Mechanism
Meta-data metadata lock: Implemented in the table cache and provides isolation for DDL (Data Definition Language. A special meta-data metadata type called Name Lock. (SQL layer)
Table-level data
The following articles mainly describe the actual operation steps for viewing MySQL operation logs and the actual operation steps. If you encounter similar operations, however, you do not know how to solve the problem correctly, so the following
Environment:Master server: centos 5.2 mysql 5.1.35 source code IP: 192.168.1.22Slave server: centos 5.2 mysql 5.1.35 source code IP: 192.168.1.33Configuration:I. master server1.1 create a replication user with the replication slave permission.Mysql>
MySQL command line is a must-have knowledge to learn MySQL databases. The following describes 10 useful MySQL command lines. I hope it will help you learn MySQL command lines.
1. display the data table structure:
Mysql> DESCRIBE table name; (DESC
Guide: Common commands for MySQL database management.
Install Mysql using the RPM package and set iptables for TCP port 3306.
Root password Management sets the root user password mysqladmin-uroot password.
Modify the password of the root user
MYSQL performance optimization involves many aspects. This article will describe some key MySQL parameters, which are key parameters that determine the performance of MySQL databases to a certain extent. We often encounter performance problems
I. Environment DescriptionMaster Database Server ip Address: 192.168.0.2Slave Database Server ip: 192.168.0.3Mysql on the master-slave server has been completely installed, but is put into production, so no data is generated.Ii. Master-slave
An ERROR is reported when mysql is started in FreeBSD! The server quit without updating PID file, which is usually used to view The. err log in The database directory. It records some specific error information, which is quite useful for
1. log on to the system as the root user first;
2. Shut down the MYSQL service or process: service mysqld stop/killall mysqld;
3. privileged to start MYSQL:/usr/local/mysql/bin/mysqld_safe -- skip-grant-tables & or mysqld_safe -- skip-grant-tables
Mysql Stored Procedure example (Currently I am using mysql 5.5)
This is the first time I write a mysql stored procedure, just follow the imitation of others!Khan!
The stored procedure is as follows:
Java codeCreate procedure proc_name (in parameter
There are many types of Mysql Log Files. Some log files record the service status of mysql and the system information generated by mysql during work, we can use this information to operate and maintain mysql services more conveniently. However,
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