Database fragmentation-mysql encoding settings, and garbled analysis bitsCN.com
Database fragmentation-mysql encoding settings and garbled analysis
In general, there are two possible causes for garbled text. The first reason is the incorrect
MysqlMy. ini detailed descriptions of bitsCN.com
Mysql My. ini
CLIENT SECTION
Client section:
[Client]
Port = 3306 port number = 3306
[Mysql]
Default-character-set = latin1 default character encoding = latin1
SERVER SECTION
Server
Mysqldump: Couldn 'texecute 'SELECT @ GTID_MODE... mysqldump
BitsCN.com
Mysqldump: Couldn't execute 'Select @ GTID_MODE...
An exception occurs when MySQL 5.6 mysqldump is used to back up MySQL versions earlier than MySQL 5.6.
1
Mysqldump:
Problems caused by mysql version upgrade bitsCN.com
Problems caused by mysql version upgrade
Problem description:
1. mysql statement in ibatis
Java code
SELECT d. qid, GROUP_CONCAT (epq. qid) qidsFROM table1 d, table2 epqWHERE d. qid = # qid
Sp_objectMYSQL obtains the specified object and definition statement content in the current instance bitsCN.com
Sp_object MYSQL obtains the content of the specified object and definition statement in the current instance.
[SQL]
DELIMITER $
USE
Common MySQL table operations: bitsCN.com
Common MySQL table operations
View column: desc table name; modify table name: alter table t_book rename to bbb; add column: alter table name add column name varchar (30); delete column: alter table name
Common commands for Mysql database backup and restoration: bitsCN.com
Command for backing up MySQL databaseMysqldump-hhostname-uusername-ppassword databasename> backupfile. SQLBack up the MySQL database in the format of a table with deletionBacking
Solve the macmysql Chinese character garbled problem bitsCN.com
Solve mac mysql Chinese character garbled problem
It is best to specify the character encoding when creating a database or table.
Example: create database db_name default character
Coupling between Redis and MySQL and efficient migration from MySQL to Redis using pipelines
Coupling between Redis and MySQL and efficient migration from MySQL to Redis using pipelines
(I) coupling between Redis and MySQL
In the early stages of
Mysql left connection right connection inner connection -- example bitsCN.com
Databases are rarely used, and only simple addition, deletion, selection, and modification are allowed. A few days ago, during the interview, I was asked to connect left
MySQLHINT: Straight_JOIN bitsCN.com
MySQL HINT: Straight_JOIN
Friends from the production environment may encounter:
After a period of time, the query statements that run well may suddenly become bad.
A major possible cause is that the data
Mysql installation error ERROR1820 (HY000): YoumustSETPASSWORDbeforeexecutingthisstatement solves bitsCN.com
ERROR 1820 (HY000): You must set password before executing this statement solved during mysql installation
The newly installed mysql
Thoroughly delete MYSQL and reinstall MYSQL centos in CentOS
BitsCN.com
Thoroughly delete MYSQL and reinstall MYSQL in centos
I installed Mysql on Centos6.3, and the mysql database was lost (the mysql permission is managed here ).
Now, you
[Mysql] An example of subquery bitsCN.com
[Mysql] An example of subquery
Assume that the table my_tbl contains three fields a, B, and c. now we need to query the minimum value of column B under each different value of column a in the table.
Today, we encountered the Incorrectstringvalue error bitsCN.com when inserting data from Mysql.
Today, an Incorrect string value error occurs when a Chinese character is inserted into Mysql data.
Background: directly insert data by typing code
MySQL connection timeout automatic disconnection problem bitsCN.com
MySQL connection timeout: automatic disconnection
Description:
When using mybatis2.3.5 for application implementation, the program reports the following error:
Com. mysql. jdbc.
Mysql basics: column type -- integer bitsCN.com
Mysql basics: column type -- integer
MySQL supports multiple column types: Numeric, date/time, and string (character ).
Note:
· M
The maximum display width. The maximum valid display width is 255.
·
Mysql basics: mysql column type-time and date bitsCN.com
Mysql basics: mysql column type-time and date
DATE
Date. The supported range is '2017-01-01 'to '2017-12-31 '. MySQL displays the DATE value in 'yyyy-MM-DD 'format, but allows you to
Mysql first-recognized log file article bitsCN.com
Log files first recognized by mysql
Log files
1. err log
The error log records all severe warnings and error messages during mysql running, as well as detailed information about each mysql
As the data volume increases, the mysql execution plan changes.
Mysql execution plan changes due to an increase in data volume
After receiving the phone number from the O & M personnel, the number of connections to the mysql server is full. log on
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