How MySQL modifies the passwordIf you forget your password--skip-grant-tables1. Alter useralter user [email protected] ' localhost ' identified by ' xxxx! ';2. GrantShow grants for [email protected] ' localhost '; GRANT USAGE on * * to ' test ' @ '
http://blog.csdn.net/u012408083/article/details/52734762MySQL command line query garbled encoding problemWhen using database Tools to query data display data is normal, Chinese is normal, using the command query, Chinese display garbledTo view the
First download the binary installation package:: https://downloads.mysql.com/archives/community/Alternate Address: Https://pan.baidu.com/s/1iks660z9Kqu4gVOiAsiERg1. Install dependent packages2, upload the binary package decompression, and establish
First of all:Use show variables like "%colla%"; show varables "%char%"; these two commands view the character set settings of the database and the server sideIf the view is gbk2312, or GBK, then can only support Simplified Chinese, traditional and
MySQL uses LIMIT offset, length for paging. However, when the number of table records is large, you will find that the query time for large pages is significantly larger than the query time for small pages.MySQL does not skip the offset line, but
The "Mysqlcheck" command is a command from MySQL that we can use to check if the tables in the database are normal.One, check a table# mysqlcheck 数据库 表名 -uroot -p"password"Second, check all the tables under a database# mysqlcheck 数据库 -uroot
1. Date and time formattingSelect Date_format (now (),'%y-%m-%d')as//2018-01 - the2. Date and time formattingSelect Date_format (now (),'%y-%m')as// Output 2018-3, query 11th to 15th dataSelect * from 5//How much, how much to remove. 4. Date of
Usually use EXE to install MySQL, today using decompression package, encountered a series of problems:Environment: WIN10MySQL version: mysql-5.7.21-winx64Start a tutorial that always uses this
MySQL Master-slave configuration
MySQL Master-Slave introduction
Preparatory work
Configure the Primary
Configuration from
Test Master-Slave synchronization
MySQL Master-Slave introductionMySQL master-slave is also called
Show OPEN TABLES where In_use > 0; --Query whether the table is lockedShow Processlist; --Query to the corresponding process = = and then KillidSELECT * from Information_schema.innodb_trx; --all transactions that are currently runningSELECT * from
Debian 9-install MySQL ServerThe steps below would show you what to install whichever version of Mysql-server your want on your Debian 9 server and why Yo U should not just runsudo apt install mysql-server -ySimilar Posts
Debian 8-install
I. Introduction to the LibraryINFORMATION_SCHEMA: Virtual library, do not occupy disk space, storage is the database startup parameters, such as user table information, column information, permission information, character information and so on
1, read UNCOMMITTED (row lock)Dirty reads occur, things are not committed and are seen by other things, and uncommitted data is dirty data.2. Read committed (Row lock)A non-repeatable read occurs, and when things start, only the things that have
Installation Environment: CentOS7 64-bit mini version, install MySQL5.71. Configure the Yum sourceDownload the Yum source RPM installation package on the MySQL website: http://dev.mysql.com/downloads/repo/yum/# 下载mysql源安装包shell> wget
phpMyAdmin Construction StepsHint: This environment needs to be built under the condition of LNMP or lamp environment1. Download the source packagewget https://files.phpmyadmin.net/phpMyAdmin-4.6.4-all-languages.tar.gz2. Extract the source package
The knowledge of MySQL must be
Command line start mysql:mysql-u user name-p password
Show column details in the table: Show Columns form tablename equivalent to DESC tablename
View all Show commands: Help show
No sorting is used when
[Daily] mysql index usage test and mysql index test
1. index is a data structure that helps MySQL efficiently obtain data. It can be understood as "sorting the data structure in order", outside of the data, the database system also maintains data
InnoDB, MySAM, and mysqlinnodbmysam in mysqlFeatures of innoDB and MyISAM in mysql -- ENGINE = innodb
1. Provides transaction processing and supports row locks;
2. read without locking, increasing the number and space of concurrent reads;
3.
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