Mysql_upgrade uses bitsCN.com
Use mysql_upgrade
When mysql is upgraded to 5.5 to export navicat to export the database
1547 column count of mysql. proc is wrong expected 20 found 16 the table is p
Solution:
1. copy the
11. subquery bitsCN.com
In SQL statements, subqueries must be placed in parentheses. when executing a subquery, the subquery results are first queried, then, the results returned by the subquery are used as the query conditions for the outer query.
Mysql groups by week for each year
Mysql groups by week across years
SQL code use employees; create table sales (id int auto_increment, date datetime not null, cost int unsigned not null, primary key (id); insert into sales (date, cost) values ('201
MySQL4Mac and environment variable bitsCN.com
MySQL4Mac and environment variables
Version: mysql-5.1.41-osx10.5-x86
First, go to the system preference settings Start MySQL Server
The command to enter mysql is:/usr/local/mysql/bin/mysql
The serial number column bitsCN.com is automatically added to the mysql search results.
The serial number column is automatically added to the mysql search result.
Find the mysql database to automatically add the serial number field columns 1, 2
Example of MySQLFEDERATED engine usage, similar to OracleDBLINK bitsCN.com
Example of using MySQL FEDERATED Engine, similar to Oracle DBLINK
1 engine description
The local MySQL database must use the FEDERATED Storage Engine to access the data
Loaddatainfile: import millions of data entries in an excel file to the database bitsCN.com within one minute.
Load data infile: import millions of data entries in an excel file to the database within one minute.
In MYSQL, run the load data
Mysql-merge table bitsCN.com
Mysql-merge table
[SQL]
Note:
1. the structure of each sub-table must be consistent. The structure of the master table and sub-table must be consistent,
2. the index of each sub-table exists in the merge table.
Mysql stored procedure bitsCN.com
Mysql stored procedure
Stored Procedure
Note: the stored procedure name must be enclosed in parentheses, even if the stored procedure has no parameters
1. basic syntax:
Create procedure sp_name () begin
How to View mysql version bitsCN.com
How to View mysql version
1: in the terminal: mysql-V. The following is a code snippet:
[Shengting @ login ~] $ Mysql-V
Mysql Verver 14.7 Distrib 4.1.10a, for redhat-linux-gnu (i686)
2: In mysql: mysql> status;
It is slow for mysql to create indexes and delete indexes.
It is very slow for mysql to create and delete indexes.
Current situation
It takes 8 minutes to create an index...
Current environment:
----------------
Table row: 30 W
Version
Common mysqlslowquery log analysis tool bitsCN.com
Common mysql slowquery log analysis tools
There is a good article about mysql optimization, which is nothing more than starting with hardware and SQL statements. of course, the most important
MySQLCluster configuration file-SQL node 4G memory bitsCN.com
MySQL Cluster configuration file-4 GB memory for SQL nodes
# Example MySQL config file for large systems.
#
# This is for a large system with memory = 512 M where the system runs mainly
Paip. mysql slow backup solution bitsCN.com
Slow recovery of paip. mysql backup
Version 5.0.45-community-nt
The master database has 50 million data records, and the backed up sql34M... is compressed to 5.8 MB.
The original backup 178 S...
Clears the historical data of the eight nodes tables. on average, each node table has 0.15 billion records bitsCN.com.
Clears the historical data of the eight nodes tables. on average, each node table has 0.15 billion records.
Clean up the
Application of mysql joint index bitsCN.com
Application of mysql joint index
There is a log table with the following structure:
CREATE TABLE `weblog` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `ip` varchar(45) NOT NULL, `time`
Programmer's practical MySQLsql statement bitsCN.com
Practical MySQL SQL statements for programmers
Here, we only pay attention to the practical use of MySQL SQL statements (excluding basic select, update, delete and other statements) that
MySQL batch delete table bitsCN.com
MySQL batch delete tables
There is no existing tool in mysql for direct implementation, so the principle is to use the existing function to implement automatic spelling of drop table statements, so as to
Install the community version Mysql5.1.41 CentOS on Centos5.4
BitsCN.com
Install community version Mysql5.1.41 on Centos 5.4
Install the Mysql service and provide internal application system database services.
PC environment: IntelE5300 memory 4G
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