Obviously this is a problem that any friend who uses MySQL will encounter.
Recall the original in the configuration environment mentioned in the MySQL GUI tool, yes, it is, you can find it in the http://www.mysql.com. Because Sunec is also only a
First we create a new data display page view.php:
Copy Code code as follows:
$link =mysql_connect ("localhost", "root", "admin password");
mysql_select_db ("Infosystem", $link);
$q = "SELECT * from Info";
mysql_query ("SET
How to make Mysql data synchronization first assume host A and B (Linux system), host a IP is 1.2.3.4 (of course, can also be dynamic), host B IP is 5.6.7.8. Two hosts are loaded with Php+mysql, now operating is the data on host A, if another host B
Create a new view.php file with the following contents:
Copy Code code as follows:
$link =mysql_connect ("localhost", "root", "previous admin password");
if (! $link) echo "No connection succeeded!";
else echo "Connection
I use localhost root account can not even ask the DBA group to finalize the new user!
Now get some information for the authorized user for a rainy
Examples of Authorization table usage
Grant is used to add users and create permissions, revoke to
This paper takes MySQL5.7.11 as an example to introduce the installation of Mysql5.7.zip under win system.
First, the prerequisite conditions:
1. Win Administrator
2. mysql installation package (Zip package)
Second, the installation process
Objective
Partitioning is the decomposition of a large table into smaller parts based on certain rules, the rule here is to use partitioning rules to slice the table horizontally; there is no logical change, but in fact the table has been split
Problem
When using the MySQL database, there is often a problem with the Can not connect to MySQL server. Too many connections -mysql 1040 error, because the number of connections that have not been released to MySQL has reached the upper limit of
Basically, there are a few tables in each system that are the structure of the parent-child relationship. Often a lot of people are using PID to do the association. When using the cake framework to write the Web when you first enter the IT industry,
Today's work requires that you want to implement a history of the tables that will only update the status, so consider setting up triggers in the original table and writing the updated content to another table
So I tested it.
--Establish a
User Rights Management mainly has the following functions:1. Can restrict user access to which libraries, which tables2. You can restrict which tables the user performs select, CREATE, delete, delete, alter, etc.3. The IP or domain name that can
Ktime Start time series
Dtime Expiration Time string
Jmonth the number of months to pay interval optional (1,3,6,12)
Need to query data by month
For example ktime=1228406400 (2008-12-5) dtime=1259856000 (2009-12-4) jmonth=3
Starting from 2008-12-5,
Myisam_max_[extra]_sort_file_size big enough.
Delay_key_write reduces IO and improves write performance
Bulk_insert_buffer_size
Concurrent_insert set to 2
Read_rnd_buffer_size Random Scan use
Read_buffer_size Sequential Scan Table use
Several guidelines for indexing:
1, reasonable indexing can speed up the efficiency of data reading, the unreasonable indexing will slow down the response speed of the database.
2, the more indexes, the slower the speed of updating data.
3, try
1> the compressed file mysql-noinstall-5.1.6-alpha-win32.zip into a directory, set the Mysql_home in the environment variable, and add%mysql_home%\bin to path.
2> creates the My.ini configuration file, which reads as follows: [mysqld]
The script is placed in the/home/user/mysql_backup.sh
Crontab
# crontab-l
# m H Dom Mon Dow command
* * */home/user/mysql_backup.sh
The script is as follows
Copy Code code as follows:
#!/bin/sh
# mysql_backup.sh:backup MySQL databases
Recently got a dozens of m of MySQL script file, ready to revert to the database.
Used to use the Mysql-front for a short time MySQL, first use it to try, the results hang off.
Well, first create an empty database with Mysql-front, and then
1th Chapter Introduction
With the wide popularization of Internet application, the storage and access of massive data has become the bottleneck of system design. For a large Internet application, billions of PV per day is undoubtedly a considerable
The table logic here is divided according to the number of user_name groups in the T_group table.
Because this is the case, the index on the field alone user_name the bad index. Can not play the obvious effect of name.
1, test procedure.
DELIMITER
For automated operational dimensions, such as backup recovery, DBAs often need to encapsulate SQL statements into shell scripts. This paper describes several methods of using SQL statements to reduce the shell script in the MySQL database under
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