1. Various types of files in the MySQL database and its storage engine InnoDB include:
Parameter files, log files, socket files, PID files, MySQL table structure files, storage engine files
2. parameter file
When a MySQL instance is started,
You cannot use a small method to compare two strings. For example: '2017-10-20 '> '2017-12-15'
Positive Solution: All, followed by time-previous time
MySQL
Select count (*) from table where timestampdiff (hour, '2017-08-08 12:00:00 ', '2017-08-
MySQL tips:
1. Hive users must support remote database connection and have the permission to add, delete, modify, and query data.
Log on to MySQL;Drop user hive @ '%'; (if '%' is not set for this user, an error is returned. Ignore this error
---------------------------
Today, the C # class is used to connect to the MySQL database. The specific solution is as follows:
MySQL table structure used:
Create Table if not exists 'tet '('Id' int (11) not null,'Name' varchar (255) not null,'Url'
From http://blog.csdn.net/leamonjxl/article/details/6431444
MySQL is becoming more and more accepted by more enterprises. With the development of enterprises, MySQL storage data is growing, and MySQL Performance Analysis, Monitoring warning, and
Some time ago, I started a project and used WCF + EF to operate MySQL databases. Now I want to write a summary of my experience and hope to help you.
1. You need to download and install MySQL connector net 6.5.4
2. Reference dll: mysql. Data mysql.
The system prompts "An exception occurred when calling the target". After searching for half a day, I wrote the article "nhib1_1.2 migration ".
Found such a paragraphChanges in ADO. net provider Assembly Loading
Nhibses 1.2 now usesAssembly. Load ()
Because books are borrowed from the library, write down some learning processes for future viewing.
1. The lock mechanism is used to manage concurrent access to shared files.
InnoDB uses row-level locks.
MyISAM uses table-level locks. In the case of
Recently, an alarm is triggered when the disk space of the database server is insufficient. In fact, the database file itself is not large, mainly because the binary logs accumulated over the past six months is large, especially databases with
1. transactions are also one of the important features of a database system that distinguishes it from a file system. In a file system, if a file is being written, the operating system suddenly crashes, this file is very likely to be damaged (a new
Guidance:MySQLCommon Database management commands.
Install MySQL using the RPM package and set iptables for TCP port 3306.
Root Password Management sets the root user's password mysqladmin-uroot password 'Password '.
Modify the root user password
1,MySQL Log comparison
Log Files
File Information
Function
Error Log
Record Start, Run, or stopMysqldProblems.
Locate the cause of the fault when the system fails.
Query logs
Record the established client
MySQL mysqldump is used for export. The basic usage is shell> mysqldump [Options] database [Tables]. If you do not specify any table, the entire database will be exported. Run mysqldump -- help to obtain the option table supported by your mysqldump
Install MySQL1. Double-click the MySQL installation package and click Next.2. setup type (installation options): Typical (typical), complete (complete), and m (custom ). Select Custom and click Next.3. Custom setup (custom installation settings).
Mysql-front error: the evaluation time of this program has expired! The program will run in lite mode with limitations;
Solution:
Select MySql-front menu bar --- help --- registration -- enter the following registration
1. A simple example
1.1. Create a table:
Create Table T (S1 integer );
1.2. Trigger:
delimiter |create trigger t_trigger before insert on t for each row begin set @x = "hello trigger"; set NEW.s1 = 55;end; |
1.3. If a trigger creation error
MySQL startup error 1067 Solution
Keyword: MySQL startup error, MySQL, 1067 Solution
After mysql5 is installed, startup error is found. Sometimes startup is normal, but an error occurs immediately after the connection is added.
Error code: 1067
Installation diagram:
Http://www.jb51.net/article/23876.htm
From: http://www.heiqu.com/show-64764-1.html
Content:
During MySQL installation, the underlying encoding method was neglected and the default ASCII encoding format was used. As a
Main functions:
1. Database Initialization
2. Database Backup | restore
The Code is as follows:
// Execute the create database operation this. getexecute (g_con, "create database if not exists newdb"); this. sqladdress = "-h" + IP + "-U" + User +
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