MySQL password cannot be changed by resolutionERROR 1820 (HY000): Must reset your password using ALTER USER statement before executing this statement.Today in MySql5.7 operation times wrong: You must SET PASSWORD before executing this statement
1, first turn off MySQL, using the '--skip-grant-tables ' parameter to start mysqld[[Email protected] ~] #service mysqld stop[[email protected] ~]#/usr/bin/safe_mysqld--skip-grant-tables&2, at this time can no password login mysql, change
1.MySQL User's permissions (mysql.user can be viewed),File_priv, can read and write system files, Of course, this file if the current system users have read and write permissions. 2.load_file () function to read the contents of a file3.Into outfile (
MySQL Database common commands1. Display DatabaseSHOW DATABASES; Display DatabaseSHOW DATABASES;MySQL-User rights-related dataSYS-a table in which the database's related configuration residesINFORMATION_SCHEMA MySQL itself schema-related
One MySQL often uses commands1. Open the Log1) show global variables like "%genera%";2)set global general_log=on;3)set global general_log=off;2. MySQL assumes that set autocommit=0 is open, then all statements must be in one transaction3. Show
Most of the programming languages have data types one says, although MySQL's SQL statements are different from standard SQL, the macro view is similar; let's talk about the numeric types in the MySQL databaseone, in MySQL there are those types that
MySQL we used to the engine has MyISAM and InnoDB these two, here we temporarily only do these two kinds of profiles.
MyISAM
InnoDB
Structural differences
Each myisam is stored as three files on disk. The
Ps-ef|grep MySQL//current investigation of PIDAnd thenLsof-p +pid can see the MySQL run serviceBaidu out of other people's wayWhen encountering MySQL card, and then want to know why, I often use the following methods to find the problemShow
InnoDB engineThe InnoDB engine provides support for database acid transactions and implements four isolation levels for the SQL standard. The engine also provides row-level and foreign-key constraints, which are designed to handle a large-capacity
1. Information_schemaINFORMATION_SCHEMA is the MySQL information database.The library is able to view MySQL database, table below. permissions, and other information.This library is generated by default in the database. Information_schema is
mysql-learning the choice of -10-20170531-replication typesHow does positioning be a big business when encountering a delay from the library? What will you do if you delay from the library? First show slave status\g; There is a
ERROR 1045 (28000): Access denied for user ' ODBC ' @ ' localhost ' (using Password:no)ERROR 1045 (28000): Access denied for user ' ODBC ' @ ' localhost ' (using Password:yes)Workaround for the above two errors under WindowsTools/Materials
Install MySQL on CentOS 6.9 rpmEnvironment:Linux:centos Release 6.9 64bitmysql:mysq-5.7.181. Create a MySQL directory at/home and download the following four packageshttp://mirrors.sohu.com/mysql/MySQL-5.7/wget http://mirrors.sohu.com/mysql/MySQL-5.7
Purpose of database optimization1. Avoid page access errors
Page 5xx error due to database connection timeout
Page cannot be loaded due to slow query
Data cannot be submitted due to blocking
2. Increase the stability of the
The server is scheduled as follows:192.168.100.128 Master192.168.100.129 from192.168.100.130 Mysql-proxy1. Download and install the Mysql-proxy in 100.130TAR-ZXVF mysql-proxy-0.8. 5-linux-el6-x86-64bit.tar.gzcp mysql-proxy-0.8. 5-linux-el6-x86-64bit/
There is no previously reviewNull value operationNull is a special value that indicates "no value" or "Unknown value", remembering that it is a different value.In order to test null, you cannot use arithmetic to compare operators don't believe you
--Maintenance operations It's all operated under CMD.To connect to a database :Native: MySQL [-H-localhost]-u account-pRemote: MySQL [-H remote_ip]-u account-pShow all current databases: show databases;Switch database: Use db_name;Displays the
In Linux, The MySQL5.7.18 yum method is used from uninstallation to installation, and mysql5.7.18yum
Source: http://www.cnblogs.com/wy123/p/6932166.html
After a long time, I thought about it and thought about it. I finally figured out the yum
Use zabbix to automatically detect and monitor MySQL and zabbixmysqlIntroduction
Use the zabbix's low-level automatic discovery function to monitor multiple ports on a single host. For details, see low_level_discovery. The overall monitoring plug-in
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