Key mysql database performance optimization parameters and mysql Server optimization bitsCN.com
Key parameters for mysql database performance optimization and mysql Server Optimization
Key parameter 1: back_log
The number of connections that
Installing mysql in linux is a difficult task. yum installation is usually the installation of mysql5.1. now, after unremitting efforts, I can use yum to install mysql5.5. The following two methods to introduce the whole process of yum installation
Master/Slave Mode:
Master server server1: 192.168.1.20 mydb, the database to be backed up by MySQL 5.0
Slave server server2: 192.168.1.22 MySQL 6.0
1. Back up existing data:
It is best to stop MySQL service first
Use the [mysqlhome]:
From http://www.cnblogs.com/pricks
"
MySQL 4.1 Character Set Support has two aspects: Character set and Collation ). The support for character sets is refined to four levels: server, database, table, and connection ). The following sections decode
(Assql is an open-source library used by Flex to connect to MySQL. It can be downloaded from http://code.google.com/p/assql/downloads/list .)
Problem:
When you use assql to query, update, and insert MySQL records, Chinese characters are garbled.
Basic MySQL operations:TestFirst, remember to add the; (semicolon) at the end of each command)1.Export the entireDatabaseMysqldump-u username-p -- default-character-set = Latin1 Database Name> exported file name (the default database encoding is
First of all, there are several ways to install Ubuntu software: 1. Deb package installation method Deb is the package management method of Debian Linux, Ubuntu is a Debian Linux release, so this software installation method is supported by default,
Common MySQL operations: The following are all tests passed under mysql5.0. First, note that you must add them at the end of each command. (semicolon)
1. Export the entire databaseMysqldump-u username-p -- default-character-set = Latin1 Database
In the file my. ini or my. CNF, addDefault-character-set = GBK########################[Client]Default-character-set = GBK[Mysqld]Default-character-set = GBK#########################Save the modification and log on to the client.# Mysql-u root-PEnter>
Causes of garbled characters
MySQL character encoding is introduced in version 4.1 and supports multiple languages. In addition, some features have exceeded those of other database systems.
Run the following command under MySQL command line
MySQLAfter the database is installed, the defaultMax connectionThe number is 100. Generally, forum orWebsiteThis number of connections is far from enough. There are two ways to increase the default number of MySQL connections.
Method 1: Go to the
EnterSudo taskselThen a software package interface will appear, move the cursor to the lamp server, press the space, and then select this item. Other items can be deselected, and click OK.Next, you will be asked to enter the password of the root
1. Start and exit
1. Go to MySQL: Start MySQL command line client (MySQL dos Interface) and enter the password for installation. The prompt is: mysql>
2. Exit MYSQL: Quit or exit
Ii. Database Operations 1. Create a database
Command: create
Source: workshop?
It is to tell the MySQL interpreter whether the command has ended and whether MySQL can be executed.By default, Delimiter is a semicolon;. In the command line client, if a command line ends with a semicolon,After you press enter,
Figure-ProFTPD
UseMySQL authentication ProFTPD:
1. apt-get update // update the database
2. apt-get mysql-client mysql-server // install MySQL
3. apt-get proftpd-mysql // install ProFTPD that supports MySQL
4. mysql-uroot-p // use Root to log on
Install and configure the Mysql database under centos, import the database, authorize a remote ip address, and centos Mysql
Uninstall the original mysql
Because mysql databases are too popular on Linux, the mainstream Linux system versions currently
ProFTPD:An FTP server program on a Unix platform or a Unix-like platform (such as Linux and FreeBSD), ProFTPD andMySQLWhat should I do for authentication? Come with me!
Use MySQL to authenticate ProFTPD users:
1. apt-get update // update the
In-depth analysis of mysql login principles, analysis of mysql Login
The first step in using the mysql database is to establish a connection and log on, and then execute the SQL command above. Whether it is through the mysql client, or through the C-
(1) log on with the system root permission
(2) Stop the MYSQL server:
Mysqladmin shutdown
(3) skip the authorization table and execute the MYSQL server:
Mysqld_safe -- skip-grant-tables -- skip-networking &
(Note: The parameter --
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.