1. to export data, first describe your environment: MacOSX10.8.3, MySQLCommunityServer5.6.10, and MySQLWorkbench5.2.47. I want to migrate the data in the local database to another machine, so I use the importexpor self-contained in Workbench
1.
Common mysql field types: bitsCN.com
Common mysql field types
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
Linux restarts MYSQL command bitsCN.com
Linux command to restart MYSQL
I. startup mode
1. start with service: service mysqld start
2. use the mysqld script to start:/etc/inint. d/mysqld start
3. start with safe_mysqld: safe_mysqld &
II.
Mysql data synchronization 1062 Error: Error bitsCN.com
Mysql data synchronization 1062 Error: Error 'Duplicate
If an error occurs during data synchronization, the following message is displayed:
Last_ SQL _Errno: 1062
Last_ SQL _Error:
Mysql utf8 sets bitsCN.com
Mysql utf8 settings
To support Chinese characters and unified character sets, we use the utf8 character set.
First, modify my. ini (mysql configuration file) and add the following content in the following
Configuration of core MySQLServer parameters in the production environment bitsCN.com
Configuration of MySQL Server Core parameters in the production environment
(1) lower_case_table_names
● Recommendation reason
The GNU/Linux platform is case
Mysql event viewing and timer related operations bitsCN.com
Mysql event viewing and timer related operations
View events
SHOW EVENTS
Select * from mysql. event
Check whether the timer is enabled.
Show variables like 'event _ schedount ';
Analysis of hang connection problem in mysql bitsCN.com
Analysis of hang connection problems in mysql
[Symptom ]:
1. C multi-threaded connection to the mysql database. every time it is a short connection, the connection will be released after
Problem encountered when aix restarts mysql bitsCN.com
Problems encountered when aix restarts mysql
Problems encountered when aix restarts mysql:
Error: 'Access denied for user' root' @ 'localhost' (using password: YES )'
This error is
Mysql parameter optimization bitsCN.com
Mysql parameter optimization
### The internal directory used to store InnoDB, which is sufficient for setting 16 MB for big data
Innodb_additional_mem_pool_size = 16 M
### Set the total InnoDB cache size,
MySQL statement audit bitsCN.com
MySQL statement review
Show databases; // display all DATABASES
Select database (); // view the current DATABASE
Show tables; // displays the table name.
USER db_name [;] // switch database
DESC tb_name;/DESCRIBE
MySQL EXPLAIN command MySQLexplain
BitsCN.com
EXPLAIN commands in MySQL
Explain shows how mysql uses indexes to process select statements and connect tables. It can help you select better indexes and write more optimized query statements.
You
MySQLInnoDB manages and backs up binary logs bitsCN.com
MySQL InnoDB manages and backs up binary logs
(I) importance of binary logs
If there is data backup at a certain point in time and all binary logs from then on
You can replay the binary
Modify the mysql table type. in the actual test, run bitsCN.com.
Modify the mysql table type. the test is executable.
When I modified the mysql table type today, I searched the internet and said it was used.
Alter table Name type = MyISAM;
Mysql quick paging optimization instance bitsCN.com with millions of database records
Mysql quick paging optimization instance with millions of database records
How high is MySql Performance? I have been using php for more than half a year. I
Mysql stored procedure memo bitsCN.com
Mysql stored procedure memo
1. export the stored procedure and back up the stored procedure
Mysqldump-u root-p-n-t-d-R -- triggers =
False my_db_name> c:/bakproc. SQL
2. get the year, month, and
When the character utf8 encoding exceeds 3 bits, the error is inserted into the Mysql database and the bitsCN.com
When the character utf8 encoding exceeds three characters is inserted into the Mysql database, the error is rectified.
Incorrect
Mysql common operations add new users assign permissions to modify table creation indexes and other bitsCN.com
Mysql common operations include adding new users, assigning permissions, modifying tables, and creating indexes
Bin> mysql-u root
Mysql>
Mysqlshowstatus command bitsCN.com
Mysql show status command
Command: show status;
Aborted_clients indicates the number of dropped connections because the client fails to properly close the connection.
The number of connection times of the MySQL
The group_concat () function summarizes bitsCN. comgroup_concat (), which returns a string with a non-NULL value from a group of connections.
It is abstract and hard to understand.
Generally, group_concat () calculates which rows belong to the
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