MySQL can use the following statement to determine whether the partition is supported:
Show VARIABLES like '%partition% ';
If the output:
Have_partitioning YES
Represents a support partition.
or through:
Show PLUGINS;
Displays all Plug-ins,
Take version phpmyadmin-2.6.1.tar.gz as an example
First extract phpmyadmin-2.6.1.tar.gz to/usr/local/apache2/htdocs,
Get the folder phpMyAdmin-2.6.1, rename it to phpMyAdmin, (this will be easier in future operations).
Enter the phpMyAdmin
Today, the study of an open source project, the database is MySQL, the script data needs to be backed up, because my machine Mac Pro, and Mac database connection tools are not easy to use, think of how to take advantage of Windows database
The following is the test code for increasing the efficiency of paging when large data volumes are shared.
--Improve paging efficiency: When you implement paging, read only the display data, you need to create the database in the database
1, replicate_do_db and replicate_ignore_db do not appear at the same time. Prone to confusion. is meaningless.
Replicate_do_db:db1
Replicate_ignore_db:db2
Statement mode:
Using the USE statement
Use Db1;insert into TB1 values (1);
Use Db2;insert
Then a study: http://www.jb51.net/article/70528.htm
Seven, MySQL database schema design performance optimizationhigh-efficiency model design
Moderate redundancy-let query do two less join
Optimization of-summary table with large segment vertical
1. Create a path to save the MySQL backup file/mysqldata
#mkdir/mysqldata
2. Create/usr/sbin/bakmysql files
#nano/usr/sbin/bakmysql
Input:
Copy Code code as follows:
#!/bin/sh
Name= ' date+%y%m%d '
mysqldump--all-databases-uroot-p
Introduction:
Because the MySQL database is too large, the default installed/var disk can no longer accommodate the newly added data, there is no way, can only find ways to transfer the data directory.
Let me organize the following steps to
Start learning the database today, because I am not very cold to Microsoft, so do not use his home product originally wanted to install Oracle, but too big, look afraid for me this kind of like basics, MySQL is a good choice, about the big theory of
1. May be the/usr/local/mysql/data/rekfan.pid file does not write permissionWorkaround: Give permission, execute "chown-r mysql:mysql/var/data" "Chmod-r 755/usr/local/mysql/data" and restart mysqld!
2. There may already be a MySQL process in
1. Large batch of random data import InnoDB very slow how to solve?InnoDB because of the relationship between the primary key clustered index, if there is no primary key or primary key not sequence, the import will be slower, how to quickly migrate
The first is to install the CMake environment. Because Bo main test machine is Ubuntu, so directly with Apt-get install CMake command to install, Yum believe should also be the same. Alternatively, you can compile the installation in the following
MySQL 5.5 has been out for a while, performance has been significantly improved, especially for multi-core CPUs and the improvement of TPS performance. Last week, the blogger introduced Linux to compile and install MySQL 5.5 steps, install no
Note: the Row_count () in MySQL can return the number of rows affected by the previous SQL Update,delete,insert operation.
Test on MySQL (database version: 5.1.22):
1. Create a database table:
Copy Code code as follows:
CREATE TABLE
This article describes a method for implementing dynamic SQL statements in a MySQL stored procedure. Share to everyone for your reference. The implementation methods are as follows:
mysql>
mysql> delimiter $$
mysql>
mysql> CREATE PROCEDURE
As a Web application of the MySQL database, we must learn how to install, the following text plus pictures of the way to give you a detailed introduction to the needs of friends.
The first step: run the MySQL installation package to choose a custom
First of all to determine whether the current version is not mysqlbinlog version, when not the Mysqlbinlog version may cause problems, the following through the simulation of the scene to introduce the method, I hope to help you.
See the current
The modified user is in the column root.
First, the original myql of the root of the password;
Method One:
Outside the MySQL system, use the Mysqladmin
# mysqladmin-u root-p Password "test123" Enter
Password: "Enter the original password"
1. Use the show statement to find out what databases are currently on the server:
Mysql> show DATABASES;
+----------+
| Database |
+----------+
| mysql |
| Test |
+----------+
3 rows in Set (0.00 sec)
2. Create a database Abccs
Overview
A friend asked: MySQL pagination seems to have been a problem, what is the optimization method?Online See net XX recommended a number of pagination method, but it seems not very feasible, can you comment on it?
Method Summary
Method 1:
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