In development, documents are often required, and database design is essential. You have written a document generation tool for the MySQL database.
The effect is as follows:
MySQL document generation tool:
-H: IP address of MySQL
-P: Port
-
I am a cainiao
Table A has an ID field, and table B also has an ID field.
Table A does not exist and all records in Table B need to be filtered out.
(1) Select * From t_website_notemp where id not in (select ID from t_website );
(2) Select
Check whether logs are enabled in Linux.
Display binary logs
Use shell to view logs
Configure MySql in Linux
Note:
Enable slow Query Long_query_time = 2 -- indicates how long the SQL statement will be logged after execution. Here, it
If you want to connect to your MySQL instance, this error occurs:
Error 1130: Host '192. 168.1.3 'is not allowed to connect to this MySQL Server
Solution:1. Change the table. It may be that your account is not allowed to log on remotely, but only
MySQL Study Notes (iv) Performance Optimization 21. Efficient Model Design
(1) moderately redundant queries to minimize join
Take out some data from other tables and put it in your own table. For example, in the publishing information table, not
Differences between MySQL auto-growth and Oracle sequence:Auto-increment can only be used for one field in the tableAuto-growth can only be assigned to a fixed field of a fixed table, and cannot be shared by multiple tables.Auto-increment will
Reference: http://zxlm.cityk.cn/fh/viewthread.php? Tid = 1395
Select *, if (SVA = 1, "male", "female") as ssva from taname where SVA <> ""
12.2. Control Flow FunctionsCase value when [compare-value] Then result [when [compare-value] Then
From: http://www.cnblogs.com/donknap/archive/2010/01/27/1657373.html
To optimize MySql in high concurrency, it is necessary to understand the lock table mechanism when MySQL queries an update.
I. Overview
MySQL has three levels of locks: Page,
No matter what version of MySQL is installed, an error will be reported midway through the MySQL service in the management tool. Content: unable to start MySQL service on local computer error 1067: Process aborted unexpectedly.
The solution is as
2011-05-14 wcdj
(1) SQL statements that do not return data-Update, delete, and insert(2) discover the inserted content
After connecting to the database and correctly handling errors, you can do some practical work. The main API functions that
PHP programmers should know that they can use the mysql_pconnect (permanent connection) function to connect to the MySQL database. Using a permanent connection to the database can improve efficiency. However, in actual applications, permanent
Cause of the problem: a set of web programs have been run on the existing Red Hat Enterprise Linux as 3.0 system. mysql4 and tomcat41 are used. Now a new program is required to be installed and the tomcat41 is still used, but the database changes to
Transferred from: http://hi.baidu.com/jinjinyun/blog/item/33b44e3d1fe0f0eb3d6d97af.html
1. Enter the bin directory of MySQL
II,Export:[MySQL bin path]>Mysqldump -- opt-D-u root-p dbn> backup-file. SQLEnter Password :******
(The preceding
Method 1:
1. Enter net stop mysql5 or net stop MySql in the DOS window.
2. Open a DOS window and switch to the bin directory of MySQL.Generally, a batch of 1.bats is created in the BINLOG. The content is "cmd.exe", and you can switch to the current
Note: This article is from the blog "afei". If you want to repost this article, please contact the author! And indicate the source: http://blog.csdn.net/faye0412/article/details/7895366
Today I encountered a very serious problem... I installed a
MySQL Study Notes (2) architecture composition
1. physical files
1.1 log files
Error Log: Enable the-log-error option at startup. By default, error logs are stored in the data directory named hostname. Err. However, you can run the -- log-error [=
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