In the second episode
1.show status like ' com% ' is equivalent to show status sessions like ' com% ' centennial--Displays current console situationShow global status like ' com% '--shows the number of databases from boot to query
Show
Value function abs (x) and pi pi functions ()
Copy Code code as follows:
Mysql> SELECT ABS (0.5), ABS ( -0.5), PI ();
+----------+-----------+----------+
| ABS (0.5) | ABS (-0.5) | PI () |
+----------+-----------+----------+
|
In web development, we often write some SQL statements, a bad SQL statement may make your entire program is very slow, more than 10 seconds, the average user will choose to close the page, how to optimize the SQL statements to run longer time SQL
Connection: Mysql-h host address-u user name-P user Password (note: U and root can be without spaces, others are the same)Disconnect: Exit (Enter)
Create authorization: Grant SELECT on database. * To User name @ login host identified by \ "Password
An introduction
In the author supports the business process, often encounters the development consultation replace into the use scene as well as the attention matter, here makes a summary. Make a description from the functional principle,
In MySQL, you can query how many records are in a table from the Select COUNT (*) from TABLE_NAME. What should you do if you want to know the total number of records in a database? In this paper, two feasible Java programs are given to solve the
I've got about 200,000 data inserts in my job, after the completion of the program to find the running timeout, modify PHP maximum execution time to 600, or timeout, check out before the number of data inserted before the calculation, probably to
1. Optimize your MySQL query cacheQueries on the MySQL server enable high speed query caching. Keeping the database engine in the background quietly is one of the most effective ways to improve performance. When the same query is executed multiple
Today, the Chinese blog Alliance has bo friends feedback, zgboke.com can not submit blog, I was just ready to go to the Holiday Plaza Party, on the rush to submit a trial, found that the blog submitted when the following error is reported:
Tip
the difference between 1,utf8_bin and Utf8_general_ci
CI is case insensitive, that is, "case-insensitive", A and a will be treated as the same in character judgments;
The bin is binary, and a and a will be treated differently.
For example you run:
First, the origin of the problem
There is a clear explanation in the official MySQL documentation that nested transactions are not supported:
Copy Code code as follows:
Transactions cannot be nested. This is a consequence of the
The first thing to declare is that in most cases, MySQL is required to have root privileges in MySQL,Therefore, the general user cannot change the password unless the administrator is requested. Method OneUsing phpMyAdmin, this is the easiest, to
This article is about using MySQL source to install MySQL and configure multiple instances with Mysqld_multi.
1, download the MySQL source installation version
To MySQL website to find the appropriate version of the download, this article is
Copy Code code as follows:
$memcached = Array (//memcached multi-process analog multiple memcached server CN en for Memory server name
' CN ' =>array (' 192.168.254.144 ', 11211),
' En ' =>array (' 192.168.254.144 ', 11212)
);
1 group_concat
Mysql> SELECT Student_name,-> Group_concat (Test_score)-> from Student-> GROUP by Student_name;
Pre
Mysql> SELECT Student_name,-> Group_concat (DISTINCT test_score-> ORDER by Test_score DESC SEPARATOR ')-> from Student-> GROUP
-------------------Quote begin------------------------3. If you decide so you can skip the next statement from the master, issue the following statements:mysql> SET GLOBAL S Ql_slave_skip_counter = n; Mysql> START SLAVE; The value of n should be 1
The second method is not valid for me, then make sure!
One, MySQL service
My Computer--(right key) management--Service and application--service--mysql--(stop, reboot)
Second, the command line mode
Windows
1. Click "Start"-> "Run" (shortcut key
Today to the MySQL import data, the use of software is SQLyog, I believe that direct guide everyone will also be selected to select a table to import-import use of local CSV data can be, single sometimes do not know what problems import is not
Use the exclamation mark (! A method that prohibits user terminals from entering.
Copy Code code as follows:
Mysql> grant all privileges in wubx.* to ' wubx ' @ ' 172.16.100.185′identified by ' fd52!wubx&, ';
Query OK, 0 rows Affected (0.00
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