Install MySQL in Linux
1. download the installation package (32-bit ):
MySQL-client-5.6.13-1.rhel5.i386.rpm
MySQL-server-5.6.13-1.rhel5.i386.rpm
2. Installation
Rpm-ivh MySQL-server-5.6.13-1.rhel5. I 386rpm-ivh MySQL-client-5.6.13-1.rhel5.
Execute MySQL statement bitsCN.com in C language in Linux
The main API functions used to add, delete, modify, and query SQL statements are:
int mysql_query(MYSQL *connection, const char *query);
The function receives the parameter connection handle
How to display Chinese characters in database tables in mysql database dos window bitsCN.com
Database: mysql database
When the dos window inserts data into the mysql database, data cannot be inserted if it contains Chinese characters. The reason
Mysql lock mechanism summary bitsCN.com
1. isolation level
(1) Read Uncommitted (RU)
At this isolation level, transactions are completely isolated and dirty reads are generated. uncommitted records can be read, which is not used in actual cases.
(2)
MySQL implements the ranking syntax such as Oracle or PostgreSQL row_numberover bitsCN. comPostgreSQL and Oracle both provide statements such as row_number () over () to rank corresponding fields, which is very convenient. MySQL does not provide
MYSQL log analysis bitsCN. comMYSQL log analysis
Reprinted from: http://blog.chinaunix.net/uid-10565106-id-223928.html
A log file is a list of tracking records. it helps us keep abreast of the status of system and application services, and provides
BitsCN.com operations for IFNULL and IN Mysql
Mysql IFNULL operation
When a field in the SQL query is empty, the default value is set in the query result. The most stupid method is to process the query results, traverse the query results, and set
Mysql database file creation method bitsCN.com
I recently found that I have forgotten about the database. my work basically does not involve mysql databases.Years later, people are more impetuous, so I hope to find something to make up for the empty
How long MySQL has been running bitsCN.com
1. uptime can be used to view the system running time
Show global status like 'uptime ';
2. use linux commands to view
There is an uptime in Linux to view the running time of the system, but MySQL does
Mysql service failed to start error 1067 solution (mysql startup error 1067) bitsCN.com
I tried several methods that Google had not solved. then I suddenly remembered the iis port usage when I started apache (because apache also used port 80 ), so
Install MySQL and stop the solution bitsCN.com in the final startservice.
I suddenly couldn't open MySQL and reported a 10061 error because I didn't know why. I checked the cause and said it was because the database was connected to a conflict, so
Mysql FAQ collection bitsCN.com
1. difference between utf8_bin and utf8_general_ci
Ci is case insensitive, that is, "case insensitive". a and A are treated as the same in character judgment;
Bin is binary, and a and A are treated differently.
For
Summary of several common problems that MySQL cannot start bitsCN.com saw a new student in the group yesterday asking about the problem that MySQL cannot be started. so I summarized several common cases, so I had the right to popularize the post,
Several methods for MySql to avoid repeated inserts of records: bitsCN.com
Solution 1: Use the ignore keyword
If you use the primary key primary or the unique index unique to distinguish the uniqueness of a record, you can use the following to avoid
Usage and optimization of MySQLOrderby statements bitsCN.com
MySQL Order By keyword is used to classify the data in the record.MySQL Order By Keyword classificationOrder by keyword is used to classify the data in the record.
SELECT column_name
How to obtain the database size bitsCN.com in mysql
1. view the mysql database sizeSELECT sum (DATA_LENGTH) + sum (INDEX_LENGTH)FROM information_schema.TABLES where TABLE_SCHEMA = 'database name ';The result is in bytes. except 1024 for K, except 10
Parsing the differences between max_connections and max_user_connections in mysql bitsCN.com has explained in the mysql manual that max_user_connections is used to restrict user resources. how can we limit user resources? A small test is conducted
For details about how to configure the MySQL dual Master, bitsCN.com just took the time to perform Master-Master synchronization for MYSQL.
Write down the steps and update them at any time for any problems. Here, the database I synchronized is TEST.
Parsing auto_increment problems in mysql bitsCN.com
When I visited the forum today, I found a seemingly simple problem, but it attracted wide attention:This is a very early interview question:A table contains an ID auto-incrementing primary key.
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