1. Close the running MySQL service2. Open the DOS window and go to the Mysql\bin directory3. Enter mysqld--skip-grant-tables return--skip-grant-tables means skipping permission table authentication when starting the MySQL service4. Open a DOS window
Read Catalogue
A system database
Two Create a database
Three database related operations
A system databaseINFORMATION_SCHEMA: Virtual library, do not occupy disk space, storage is the database startup parameters, such as user
First, view all tables in the current databasemysql> use dbdatabase changedmysql> show tables; Empty Set (0.00 sec) #表示db数据库下无数据表.Ii. Establishment of the tableCREATE TABLE customers (ID int unsigned NOT NULL auto_increment,name varchar (in) Not
type of index
B-tree Index
B-tree indexes usually mean that all values are stored sequentially and that each leaf page is the same distance from the root.
The B-tree index speeds up access to data , and the storage
Time error in MyBatis1. SELECT * FROM table1 where Create_time 2. SELECT * FROM table1 where Create_time The effect is the red part, the result set and (1) The result set is the same; and the last one is to query 23:59:59 data; inconsistent with
Host Settings/etc/my.cnf#ID must be uniqueServer-id=1# #二进制文件名称前缀, generated files mysql-bin.000001,mysql-bin.000002Log-bin=mysql-bin# #记录目前有哪些mysql-bin file SHOW MASTER STATUS;Log-bin-index=master-bin.index# #有更新是否立即同步到日志, performance will be low,
How to insert test data in MySQL and test data in MySQL
To insert MySQL test data, we will introduce two methods:
Select priority(Use PHP to generate test data>Use stored procedures).
Use stored procedures (this method is recommended if the test
Basic MySQL transaction learning and experience sharing, mysql transaction Experience Sharing
A transaction is a logical group of operations that comprise all the units of this group of operations. If it fails or fails, it is a transaction. The
In-depth analysis of slow MySQL Sending data query, mysqlsending
An example is provided to show you how to solve the slow query problem in the MySQL Sending data table.
Recently, in code optimization, I found that an SQL statement is very slow, so I
How to import and export mysql database commands in linux
1. Use the mysqldump command to export the database (note the installation path of mysql, that is, the path of this command ):
1. Export data and table structure:
Mysqldump-u username-p
How to install and thoroughly Delete mysql decompress
1. Install mysql
(1) decompress the downloaded mysql compressed file to the directory where mysql needs to be installed.
(2) Open the decompressed folder, copy the default. ini file, and rename
Analysis of MySQL concurrency problems and solutions, mysql concurrency1. Background
For database systems, improving concurrency while ensuring data consistency under multi-user concurrency conditions has always been the goal of the database system,
Mysql database multi-source replication solution and mysql database solution
Overview
Currently, mysql databases in the production environment are distributed on two servers. If the configuration is simple from a single master-slave perspective, the
Install lnmp mysql and lnmpmysql
Install mysql in linux
# Yum-y install make gcc-c ++ cmake bison-devel ncurses-devel // install the package required for compiling code
# Wget http://www.mysql.com/Downloads/MySQL-5.6/mysql-5.6.27.tar.gz // download
Mysql table and constraint operations, mysql constraint operations
By default, the Data Engine and character set are used to create a table. For example, to create a student table, the Code is as follows:
Create table students (id int unsigned
MYSQL-implements -row_number () over (partition by order by) Grouping and sorting, mysql-sqlserver-
sqlserver:with Result as ( select SUM(F_DayValue) AS F_Value,F_ZZ_ttBuildID,F_EnergyItemCode from T_EC_EnergyItemDayResult
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