MYSQL table optimization method Summary: comprehensive bitsCN.com simultaneous online access continues to increase. for servers with 1 GB of memory, it is difficult to find that even the server crashes every day or sometimes gets stuck on the server.
The most comprehensive MySQL backup method in history, bitsCN.com, I once
Used BACKUP methods include mysqldump, mysqlhotcopy, backup table, and select.
OUTFILE, or binlog backup, or directly copy data files and related configuration files.
Win32 installation and configuration of non-installed MySQL bitsCN.com environment variable settings: Right-click my computer on the desktop and choose Properties> Advanced> environment variables> double-click the Path item to add C:
SQL statement quick start for PHP learning bitsCN. comSelect * from tablename
SQL> select * from employees;
Select select list from tablename
SQL> select employee_id, first_name from employees;
Select distinct... From tablename
SQL> select distinct
Full usage of MySQLJOIN: bitsCN.com outer join. Outer join can be left outer join, right outer join, or complete external join.
When an external join is specified in the FROM clause, it can be specified by one of the following sets of
MySQL random password generation code bitsCN.com
DELIMITER $
CREATE
FUNCTION 't_gir'. 'func _ rand_string '(f_num tinyint unsigned, f_type tinyint unsigned)
RETURNS varchar (32)
BEGIN
-- Translate the number to letter.
-- No 1 stands for
Mysql dynamically generates test data bitsCN.com
I. problems
To generate two types of data:
Class A: 01 02 03 of two digits... 09 10 11... 19 20 21... 98 99
Another Class B: The third-digit 100 101 102... 110 111 112... 998 999
II. Solution
1.
The implementation statement bitsCN.com for inserting data from one table to another in MySQL. if the fields of the two tables are consistent and you want to insert all the data, you can use this method:
Code:
Insert into target table SELECT *
Mysql operation summary INSERT and REPLACE bitsCN.com
The implication is to modify the data. There are three statements in standard SQL: INSERT, UPDATE, and DELETE. There is another REPLACE statement in MySQL. Therefore, this article takes MySQL as
Find MySQL advantages bitsCN.com
Step 1-install MySQL
Download this Server, MySQL GUI tool, and MySQL ODBC driver from http://dev.mysql.com/downloads. You can select 5.0, 5.1, or 6.0 servers. Then install them.
Precautions During installation:
Your
Optimization of my. ini in mysql database 2 GB memory for setting bitsCN.com
The larger the physical memory, the larger the setting. the default value is 2402, and the value is adjusted.Innodb_additional_mem_pool_size = 4 M; default value: 2
Mysql numeric type conversion function bitsCN. com1. concat is often used to convert Int to varchar. for example, concat (8, '0') gets the string '80'
2. convert varchar into an Int string of the varchar type using cast (a as signed).
Summary:
Implementation and FAQ of multiple statements executed by MySQL at a time bitsCN. comMySQL allows you to specify multiple statements in a single query string. you can specify parameters for the link by using the following methods:
// Set when
Summary of optimization policies for MySQL table creation: bitsCN.com Directory
1. character set Selection 1
2. primary key 1
3. foreign key 2
4. index 2
4.1 The following conditions are suitable for creating an index 2
4.2. index 3 is not suitable
MySQL: mysqlisnotrunningbutlockexists solution bitsCN.com: An error occurred while starting MySQL. after checking the status, the following error occurs: MySQL is not running, but lock exists:
A netizen said it may be related to the log file, so
Mysql inserts Chinese and Chinese query (modification + debugging) bitscn.com// I modified it to run normally, and the Test environment is mysql5.0,xp
// The key is to set the character set, set gbk, gb2312 to pass the test, and utf8 to fail.
//
How many columns does a MySQL index have? A real test example of bitsCN.com can contain a maximum of 16 columns.
Create table test (
F1 int,
F2 int,
F3 int,
F4 int,
F5 int,
F6 int,
F7 int,
F8 int,
F9 int,
F10 int,
F11 int,
F12 int,
F13 int,
F14 int,
Mysqlamp; quot; toomanyconnectionsamp; quot; mysql solution: bitsCN.com the solution is to modify/etc/mysql/my. cnf and add the following line:
Set-variable = max_connections = 500
Or add the parameter max_connections = 500 to the startup
MySQL-related environment variable bitsCN.com
Using MYSQL_PWD is insecure. See connection to MySQL server in MySQL 6.3.
"Mysql" uses the file named in the environment variable MYSQL_HISTFILE to save the command line history. The default value of
MYSQL Random extraction implementation method and efficiency analysis bitsCN.com
How can I read 15 records randomly from the database?
Order by rand () limit 0, 15
How to read all records randomly from the database?
Order by rand ()
However, I
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