Note: This article is for mac!! only ProblemAfter installing MySQL successfully, want to get a database to try, but error. Not an error code, but a piece of code:Authentication plugin ‘caching_sha2_password‘ cannot be loaded: dlopen(/usr/local/mysql/
Foreword: Meet such a demand, have a result, the result only records the student's score, now needs to statistic student's grade, 100-90 divides into excellent, 90-60 divides into passes, 60-0 divides into the failure. This requirement can be
Original: http://bbs.landingbj.com/t-0-245452-1.htmlFor the optimization of the index, we first need to find the appropriate field, the second create the index to find the appropriate order, the third to find the appropriate proportion, and four is
The error that occurred:ERROR 1205 (HY000): Lock wait timeout exceeded; Try restarting transactionWorkaround: View the process of sleepMysql> Show full processlist;+-------+----------+-------------------+----------+---------+-------+----------+- ----
Left outer connection: (Based on left table)When two tables are connected, the connection conditions do not match.Leave the data in the left table, and the data in the right table is filled with nullExample: Use the left link to take the student's
There are two main ways to handle MySQL transactions.1, with Begin,rollback,commit to achieveBegin a transactionROLLBACK TRANSACTION RollbackCommit TRANSACTION Acknowledgement2, directly with set to change the MySQL automatic submission modeMySQL is
MySQL advanced queryAdvanced QueryKeyword Write order keyword execution orderSelect: Projection Results 1 5From: Navigate to Table 2 1Where: First filter before grouping 3 2GROUP BY: Group 4 3Having: Second filter after grouping 5 4ORDER BY: Sort 6 6
Sometimes you may forget the root password of MySQL, and the following will teach you to reset the MySQL root user passwordManually Modify1. Stop MySQL ServiceExecution:/etc/init.d/mysql stop, your machine is not necessarily/etc/init.d/mysql
Originated from the network, not verified.Data Sheet
Id
Uid
Info
1
1001
{"Name": "Anniversary", "status": 0, "addtime": "2017-10-10"}
2
1002
[{"Name": "Anniversary", "status"
MySQL user management 1. Create a regular user and authorize[[Email protected] ~]# mysql-uroot-p ' szyino-123 ' warning:using a passwordThe command line interface can insecure. Welcome to the MySQL Monitor. Commands End With;or \g.your MySQL
One, MySQL user managementGrant all on * * to ' user1 ' @ ' 127.0.0.1 ' identified by ' mimA123 '; Create User1 userSign in with User1/usr/local/mysql/bin/mysql-uuser1-pmima123-h127.0.0.1To localhost, without-H can also log inMysql> Grant All on * *
Execution path of the query
SQL statements
Query cache
Parser
Parse tree
Pretreatment
Find the best query path
Query optimization SQL statements
Execution plan
API call Storage Engine
Call data, return
1 showshow tables; Show all tables of the database show databases ; for [email protected]; View the permissions of the current user show index from table; View the indexes of the current table definition2 Describe getting information about
MysqldumpBackup tool mysqldump, it is recommended to use the data below 10g for backup, is a logical backup of the MySQL database.MyISAM Storage Engine: Support Win Bei, lock table when backing up;InnoDB Storage Engine: Supports Win Bei and hot
1) Scene catch the slow query statement show full processlist;2) configuration parameters:Slow_query_log_file = On slow query open switchlong_query_time = 2 record SQL statement greater than 2 secondsLog_queries_not_using_indexes = on does not use
Tag: Cannot find RPM-IVH master Centos7 serve TE up and down get serverFirst step: Install the wget command to download files from the Web[Email protected] ~]# yum-y install wgetStep two: Download the MySQL repo sourceStep three: Install the
01What are the common relational database and non-relational types? 1. Relational databases use foreign key associations to establish a table-to-table relationship---------Common: SQLite, Oracle, MySQL2. A non-relational database usually means that
First, MySQL IntroductionMySQL is a relational database management system developed by the Swedish MySQL AB company, currently owned by the Oracle company. MySQL's most popular relational database management system, MySQL is one of the best RDBMS
Workaround:1. Check if MySQL permissions are a problem (default installation is yum-y install MySQL)Go to the/etc/rc.d/init.d/directory[Email protected] init.d]# mysqld status2018-06-11 15:20:47 0 [Warning] TIMESTAMP with implicit DEFAULT value is
MySQL Settings change root password
Export path= $PATH:/usr/local/mysql/bin/add MySQL to the environment variable can be used directly to the MySQL command, permanent effect to put this command to/etc/profile, and Source/etc/profile
Set
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