This article transferred from: blog.163.com/lgh_2002/blog/static/4401752620134300259/First Officer online download Linux version: Http://www.navicat.com/download1. Download the navicat110_mysql_en.tar.gz file2. Unzip the tar file after
mysql> Select Desc,status,play_time,push_type, interval " from Cms_push; ERROR 2006 (HY000): MySQL server has gone awayno connection. Trying to reconnect ... Connection ID: 700current database:xxx_cmserror 1064 (42000): You are having an
Suppose you want to run the script: F:\hello world\niuzi.sqlThe first method:Under command line (database not connected), enter Mysql-h localhost-u root-p The second method:At the command line (the database is connected, the prompt is mysql>), enter
I. mysql5.5.38:http://dev.mysql.com/get/downloads/mysql-5.5/mysql-5.5.38.tar.gz Two. Original source: http://1567045.blog.51cto.com/1557045/841064 Three. Brief review: 0. Prepare the disk and store the MySQL data file Installation if the disk is
MySQL INSERT statementWhen to use single quotes, when not?1. Create a table firstCREATE TABLE User (Username varchar (255),Age int,Marry Boolean,Birthday Date);Note that there must be no comma before the last parenthesis, otherwise an error "2.
MySQL is a common database, and in order to ensure that the data is not lost, MySQL master and slave become a lot of enterprise choice, the principle involved in the introduction of the following: Slave server through the slave_io_running process
The previous blog describes a case where memory spikes due to SQL query Information_schema tables.Today, by the way, a THD memory is monitored:Let's introduce the memory of MySQL:1. In-thread memory: thd->mem_root, during the execution of SQL, the
Scheduled backups:1. Create a backup file to store the directory2. Create a backup script backup.sh#!/bin/bashDbuser=db_backDbpasswd=passwordDbname=db_nameServer=localhostsave_dir=/dbbackup/logfile= "$save _dir" Backup.lognewfile= "$save _dir"
--mysql SQL optimization-------------------2014/07/23case of several order byAt first glance the problem seems a bit complicated, and we start with the simplest case.Use this table to illustrate: (10w rows of data)1. The simplest Order――order by
Check official documents: FROM_UNIXTIME(unix_timestamp), FROM_UNIXTIME(unix_timestamp,format) Returns A representation of theunix_timestampargument as a value in‘YYYY-MM-DD HH:MM:SS‘orYYYYMMDDHHMMSSformat, depending on whether the function was used
Use mysqlbinlog to recover data based on location or time pointUse mysqlbinlog to restore data based on location or time pointMySQL backup generally uses full backup and log backup. For example, a full backup is performed every day and a binary log
Basic implementation principle of group by in MySQL
Because group by actually performs sorting operations, and compared with order by, group by mainly only performs grouping operations after sorting. Of course, if other Aggregate functions are used
Mysql generates table files, truncate, and Load
SELECT -- ' select * from `',TABLE_SCHEMA,'`.`',TABLE_NAME,'` into outfile ''/work/opdir/repair'''-- concat('union all -- select count(1) as count_, ''`',TABLE_SCHEMA,'`.`',TABLE_NAME, '`'' as tbname
No Mysql and performance_schema databases are available when mysql is installed and running.
Mysql ERROR 1045 (28000): Access denied for user 'root' @ 'localhost' (using password: YES)
No Mysql and performance_schema databases are available when
Create advanced connections for MySQL
SQL allows an alias for a table. The two main reasons for doing so are:The SQL statement can be shortened; the same table can be used multiple times in a single SELECT statement; the alias is used to represent
Detailed analysis of mysql explain command
The mysql explain command is used to show how mysql uses indexes to process select statements and connect tables. We can use this command to analyze the performance bottleneck of the query or table
Phpmyadmin shows that the MySQL DATA table is "in use" and the solution is still invalid. phpmyadminmysql
In the PHP + MySQL background, some program pages do not display content. An error is prompted and must be fixed.
Open phpmyadmin and select
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.