User Authorization method
You can add a new user by issuing a GRANT statement:
shell> mysql--user=root mysql
mysql> GRANT all privileges in *.* to Monty@localhost
identified by ' some Thing ' with GRANT OPTION;
Mysql> GRANT all privileges
This article for everyone to share the construction of the thinkphp framework of the problems encountered, for you to provide a solution, the specific contents are as follows
The first part: frame build
I have just come in contact with thinkphp,
SQL pattern matching allows you to use“_”匹配任何单个字符,而“%”匹配任意数目字符(包括零字符)。在 MySQL中,SQL的模式默认是忽略大小写的。下面给出一些例子。注意使用SQL模式时,不能使用=或!=;而应使用LIKE或NOT LIKE比较操作符。
Want to find out“b”开头的名字:
mysql> SELECT * from pet WHERE name like ' b% ';
+--------+--------+--
Connecting and disconnecting serversConnecting to a server usually requires providing a
MysqlUser name and most likely requires a password. If the server is running on a machine other than the logon server, you also need to specify the host
The SQL standard defines 4 classes of isolation, including specific rules that define which changes are visible inside and outside the transaction and which are not. The low-level isolation level generally supports higher concurrency processing and
MySQL Sub-queryA subquery is an intermediate result of the query result of a SELECT statement, which is invoked by another SQL statement. MySQL supports all of the subquery formats and operations required by the SQL standard, and also extends
Update updatesthe update SET syntax is used to modify data in the Update data table.Grammar:
UPDATE tb_name SET column1 = New_value1,column2 = New_value2,... WHERE definition
This syntax updates the value of Column1 in a record in the
To see if the event Scheduler is currently turned on
Show VARIABLES like ' Event_scheduler ';
Open Event Viewer
SET GLOBAL event_scheduler = 1;
Creating events
Grammar:
CREATE EVENT [IF not EXISTS] Event_Name
On SCHEDULE SCHEDULE
[on completion
As we all know, InnoDB uses IoT (Index organization table), the so-called Index organization table, and the leaf node holds all the data, which means that the data is always stored in some order. So the question is, if it is such a statement, what
Unconsciously played two years of MySQL, found that a lot of people say that MySQL compared to Oracle, the optimizer does a poor job, in fact, in a way, indeed, But after all, MySQL only to 5.7 version, Oracle has developed to 12c, today I looked at
About MySQL efficiency optimization typically uses the following two ways to locate execution-less efficient SQL statements.
With slow query logs locating those SQL statements that perform less efficiently, when started with
For specific details, please see the following small set of knowledge points brought to you.
Similar to the writing program, the stored procedure also has a corresponding conditional judgment, the function is similar to if, switch. In MySQL it
One, multiple table connection type1. Cartesian product (cross join) in MySQL can be a cross join or omit cross that join, or use ', ' such as:
Because the result it returns is the product of the two data tables that are connected, it is generally
MySQL's stored procedures are supported from version 5, so the stored procedures are now available for general use. Share your knowledge and understanding of MySQL stored procedures today.
Some simple calls and grammar rules here is not to repeat,
Binary logthe binary log records all operations that make changes to the database, and the binary has the following two main functions:
1, restore (recovery) 2, copy (replication)
Binary log Startup: Configuration parameter Log-bin[=name] If name
Startup failedRestart the server after--> restart the application service (confluence)--> error, database connection failed (MySQL set up from boot)--> view MySQL database status:
[Root@fisheye ~]# Ps-ef | grep MySQL
root 25555 21974 0 11:2
After so long, the question of Discuz forum still puzzles a lot of netizens, in fact, from the various forums to see the problem summed up, the key point is because there is no data table engine into the innodb caused, discuz in a slightly higher
View MySQL database tablesEnter the MySQL Command line clientTo view the database currently in use:
Mysql>select database ();
mysql>status;
Mysql>show tables;
Mysql>show databases;//can see which databases are available, return the database
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