MySQL View details of all current connections:Mysqladmin-u root-p ProcesslistMySQL view current number of connections (threads is the number of connections)Mysqladmin-u root-p Statusuptime:1047464 threads:22 questions:1494780 Slow queries:0 opens:313
A table was created:1+-------------+--------------+------+-----+---------+----------------+2| Field | Type | Null | Key | Default | Extra |3+-------------+--------------+------+-----+---------+----------------+4| ID |int( One) | NO | PRI | NULL
Hours server queries the number of coaches, use the Select COUNT (Distinct (U_strno)) times to exceed memory errors. After reference "Mysqld-nt:out of memory Solution"
Yesterday a PGP encryption disk broke, everything lost ... , My notes! How can I be 2?Back up a script, convenient for later mobile phone view, saying I almost forgot the account passwordNote: footstep recovery can only be restored to the state
Delimiter $create PROCEDURE phonedeal () BEGIN DECLARE ID varchar (+); --ID DECLARE phone1 varchar (+);--Phone DECLARE password1 varchar (32);--Password DECLARE name1 varchar (+); --ID --traverse end of data flag DECLARE
1, install Go language environment, (go version requires more than 1.3)wget https://storage.googleapis.com/golang/go1.6.3.linux-amd64.tar.gzTar-c/usr/local/-xzf go1.6.3.linux-amd64.tar.gzConfigure the environment variables to include the following
One, automatic backup MySQL script: The following script for MySQL automatic backup script, for reference only, can be modified according to the actual situation. #!/bin/sh #auto backup MySQL #wugk#Define Path definition variable bakdir=/data/backup/
Http://coolshell.cn/articles/1846.htmlToday, database operations are increasingly becoming a performance bottleneck for the entire application, which is especially noticeable for web applications. It's not just about the performance of the database
Https://help.aliyun.com/knowledge_detail/41717.html?spm=5176.7841698.2.11.aCvOXJRDS for MySQL query cache The settings and use of
function and scope of application
Principle
Limit
Set up
Validation effect
1.
Use keepalived to build a high-availability environment for MySQL.First build MySQL master-slave replicationOn master, open Binlog, create a copy account,Then enter the command in the slave
Change Master to
Master_host= ' 192.168.1.70 ',
http://mysql.taobao.org/monthly/2016/06/07/#rdMySQL中的两种临时表外部临时表Temporary tables created from the Create temporary table, which are called external temporary tables. This temporary table is visible only to the current user, and the temporary table is
The loat type can be a floating-point number (that is, a decimal type), but float has a downside, and when the data you give is an integer, it is treated as an integer. So we have a natural problem in accessing the currency value, my default value
Reason:It feels ridiculous to suddenly want to download a binary installation package. Suddenly I don't know where to download it. Before like from Sohu image, NetEase image download, later found that the site can not be used. Well, I'll download it
1. What is a transactionA transaction is a combination of one or more database operation statements with acid,4 characteristics.Atomicity: Either all succeeds or all is undoneIsolation: Transactions are independent from one another and are not
What is a MySQL databaseTypically, a database is a collection of data, and a database can be a collection of files on a memory or a collection of some memory data.What we usually call MySQL database, SQL Server database and so on is actually a
Snippet: Fetching results after calling stored procedures using MySQL Connector/Python, snippetfetchingHttps://geert.vanderkelen.org/2014/results-after-procedure-call/Problem
Using MySQL Connector/Python, you are calling a stored procedure which is
Change mysql password, and change mysql root Password
1. mysql does not have a password at first. You can press enter directly when entering the password, but you must enter the password before logging on. Next, let's change the password when you
MySql optimization steps (recommended), mysql optimization steps recommended
General steps for MySql optimization:
1. Run the show status command to check the execution efficiency of various SQL statements.
Show status provides the STATUS
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