method One: by adding parameter--default-character-set = UTF8 solve garbled problem
Mysql-u root-p Password
method Two: import garbled solution on the command line
Use database_name;Set names UTF8; (or other required encoding)SOURCE example.sql (
The ORDER by null purpose is to force the ordering to be disabled for query results. When you check the query by explain, if you see a using Filesort in the extra column, this has a certain effect on performance, especially when group by is used,
Today I wrote an airport table with a few fields
Primary key ID, airport English name, airport Chinese name, airport three codewords, Airport city nameID, name, c_name, Code,city_nameSince the airport three codewords are not duplicated, I initially
The function of this shell is to automatically restore MySQL master and slave error, is it feeling very powerful? All right, go straight to the code.
The code is as follows
Copy Code
#!/bin/sh# Check_mysql_slave StatusIp=
A generic backup database uses tools such as phpMyAdmin, Navicat. In fact, in the window under the CMD command mode backup is also a good choice. Today, in command mode, back up the database, table, restore database, Table command.
Back up the
When you use PHP to insert large data into MySQL, you encounter a problem:
2006:mysql server has gone away:: INSERT into Hu Jintao
After looking, knowing the reason, is that MySQL's max_allowed_packet value is set too small or not set, this
What are the MySQL storage engine types
MyISAM Manage non-transaction tables. Provides high speed retrieval and full-text search capabilities.The memory storage Engine provides a "in-memory" table, and the merge storage engine allows the collection
MySQL version: Mysql-4.1.21-win32.exeApache Version: Apache_1.3.37-win32-x86-no_src.msiOperating system: WinXP + SP2PHP Version: Php-4.4.3-win32.zipMy site is currently supported in both Chinese and English and will need to support other languages
Create a databaseCreate a database of your own. See the following syntax.Create database [if not exists] db_name;The first part is a fixed keyword, and db_name is the name of the database you want to create, for example:Create database test04;In
System environment:Server System: CentOS 6.5 x86_64Mysql version: Mysql 5.1I. binlog introduction1. binlog, that is, binary log, which records all changes in the database.2. When the SQL statement of the database is changed, a record will be written
Benefits of master-slave replicationIt ensures real-time asynchronous data backup and the primary server is secure and reliable without being influenced by external data.Master-slave replication principleDistributing data to multiple systems is
[What is mysql]A brief description is a database software.[Download]Download the community version source code on the mysql official website. Download the command:Wget http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.22.tar.gz[Resolve package
I tried to use the CentOS 7.0 virtual machine on Alibaba Cloud, deployed the Django application, and used MySQL to record some problems, many of these problems may be caused by CenOS 7 (previously adapted to CentOS 6.x ).1. MySQL is gone and
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