MySQL database optimization related knowledge:The choice of two common engines1, MyISAMDefault engine when MySQL version is less than 5.5Advantages: Good at data processing, high-speed reading and writing; The data is stored in the order of
Use Java to make a backup of MySQL:public class Mysqlbackup {/** * Java code Implementation MySQL database export * * @author Gaohuanjie * @param hostip MySQL database service Address IP * @param userName the username required to enter the database *
best choice for MySQL data types It's important to choose the type of data carefully. Can improve the performance, the principle is as follows: Storage (memory, disk), saving I/O (retrieving the same data)calculate and then offload CPU load
Binlog mode can be divided into the following three types (row,statement,mixed)1.RowThe log is recorded as each row of data is modified form, and then on the slave end of the same data modified, only the data to be modified, only the value, there is
MySQL inserted in Chinese does not garbled 5 ways:Method One:Log in to MySQL, set names Latin1 first, and then update the statement or execute the SQL statementMysql> set names latin1;mysql> source Test.sql;Method Two:Specify set names latin1 in the
1. Database Introduction1.1. IntroductionData is saved to "memory":Pros: Read and write very quicklyCons: Data loss due to program shutdownData is saved to "file":Pros: Data can be saved permanentlyCons: 1) Frequent IO operation, not high efficiency!
From:http://www.jb51.net/article/37766.htmMySQL has a variety of storage engines, MyISAM and InnoDB are two of the most common. Here are some basic concepts about these two engines (not in-depth introduction).MyISAM is the default storage engine for
Mysqldump-hhostname-uusername-ppassword databasename > Backupfile.sqlBacking up the MySQL database to a format with a delete tableBacking up the MySQL database is a format with a delete table that allows the backup to overwrite the existing database
Overview:A data table (or table) is one of the most important components of a database and is the basis for other objects.A relational database is a two-dimensional tableThe line is called a recordColumns are called fieldsOpen database: use+
Environment variables for MySQL
Server variables: Adjust MySQL's working properties, determined by the MySQL configuration file
State variables: Self-statistics that are output after MySQL runs
View MySQL's environment variables
SqlDDL: Data definition language CREATE DROP ALTERDML: Data Manipulation language SELECT INSERT UPDATE DELETEDCL: Data Control Language GRANT REVOKE COMMIT ROLLBACKThe most basic (build a library, build a table)SHOW DATABASES;Use database
I did a MySQL multi-instance experiment today,Enter 3307 no problem.Enter 3306 : Enter : mysql-s/data/3306/mysql.sock error :
ERROR 2002 (HY000): Can ' t connect to local MySQL server
Solve:1.Kill 33934Kill 342282,I removed the
1. Error2. When you are sure that you have forgotten your MySQL password, you can reset the root user password by using the following scenario. Double-click Open C:\Program files\mysql\mysql Server 5.1\my.ini file, such as:3. Click "Edit" at the top
Installation and configuration of MySQLMySQL Port number 3306Basedir= "C:/Program files/mysql/mysql Server 5.5/" Base installation directoryDatadir= "C:/programdata/mysql/mysql Server 5.5/data/" After data file storage directoryModify the
Original: Vs2012+ef6+mysql Configuration of mental journeyIn order to learn the ORM, chose the EntityFramework, experienced three days and two nights of suffering, n times wrong, in the group of the help of master, finally succeeded, now will my
The formula is as follows, Unit meter: 1th Latitude: lng1 lat1 2nd latitude and Longitude: lng2 lat2 round (6378.138*2*asin (POW (sqrt (LAT1*PI ()/180-lat2*pi ()/180)/2), 2) + Cos (LAT1*PI ()/180) *cos (LAT2*PI ()/180) *Pow (Sin ((Lng1*pi ()/180-lng2
Get ready:1, window computer, my 64-bit2. mysql Compression pack Mysql-5.6.24-winx64.zip3, Navicat of the compressed package, my version is 10.0.11installation of MySQL1, decompression, the folder after the decompression to put in any place you want
PrefaceIn the database is a sheet of inextricably linked tables, so the table design is good or bad, will directly affect the entire database. While designing the table, we will focus on one issue and what storage engine to use. Wait a minute,
MySQL Data Type
The data field type defined in MySQL is very important for your database optimization.
MySQL supports multiple types, which can be roughly divided into three types: numerical value, date/time, and string (character) type.
Value Type
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