Technical warehouse
Introduction:Transfer server space for the forum today ~~~ First, use phpmyadmin to export the Mysql database ~~After creating a database on the new server, import the database! However, the. SQL file of the MySQL database is
From: Feifei blog
Mysql password cracking method mysql cracking tool download
Windows:1. log on to the system as a system administrator.2. Stop MySQL services.3. Go to the Command window and enter the MySQL installation directory. For example, if
The following are five ways to improve the query of inserted tables:
1) using load data infile to download DATA from text is 20 times faster than using the insert statement.
2) INSERT several rows at a time using an INSERT statement with multiple
Using MySQL for database backup has a very regular database backup method, which has the same concept as other database servers, but have you ever thought about it, mySQL will have a simpler backup method using the file directory, and it will be
MySQL uses the value of the environmental variable TMPDIR as the path name of the directory for saving the temporary file. If TMPDIR is not set, MySQL uses the default value of the system, usually/tmp,/var/tmp, or/usr/tmp. If the file system that
MYSQL obtains the auto-incrementing primary key. [four methods] After we perform the insert operation on mysql in the application, we need to obtain the auto-incrementing primary key of the insert record. This article introduces four methods in the
MySql insert operations are not completely North 1. the inserted data is from other table Table A with id, cola field table B with id, cola, colb... and so on, where the id is the primary key, cola columns with the same name now want to insert the
MySQL learning footprint record 12-use subquery 1. subquery: Query raw data nested in other queries is as follows:
Mysql> SELECT order_num FROM orderitems; + ----------- + | order_num | + ----------- + | 20005 | 20005 | 20009 | 20005 | 20009 | 20008
An interesting question: the maximum length of varchar in MySQLThe minimum heap of 1 K is obviously maintained, but only nine hundred rows of data are output to MySQL. Check the log and find the following content:
01stderr
In mysql, how to update a field value to its own value connected to a string CONCAT (str1, str2,...) returns the string produced by the connection parameter. If any parameter is NULL, the return value is NULL. There may be one or more parameters. If
Can't connect to MySQL server for linux tcp connection optimization recently two web machines are connected to mysql, sometimes there will be Can't connect to MySQL server, view the exception log:
[message:protected] => SQLSTATE[HY000] [2003] Can’t
Mysqldump command note -- opt
Mysqldump-uroot-p -- opt DATABASENAME [Table]> xxx. SQL
By default, the SQL file exported by Mysqldump contains not only the exported data, but also the structure information of all data tables in the exported
Modify the default Character Set of mysql in mac to utf8 1 and check the character set of mysql installed by default.
mysql> show variables like '%char%';+--------------------------+--------------------------------------------------------+| Variable_
Don't stick to the details-mysql Field Type Details mysql field type intvarchartext maybe you do not care at ordinary times, when designing the database, the number is set to int (10) string and set to varchar (20) or text is normal, but if you do
[SQL] MySQL performance optimization 1. Optimize the query cache. Most MySQL servers have enabled the query cache. This is one of the most effective ways to improve performance, and it is processed by the MySQL database engine. When many identical
Change the names of Mysql database tables to uppercase in batches
[SQL] DELIMITER // DROP PROCEDURE IF EXISTS uppercase // CREATE PROCEDURE uppercase (IN dbname VARCHAR (200) BEGIN DECLARE done INT DEFAULT 0; DECLARE oldname VARCHAR (200 ); DECLARE
Simple mysql Data Operations
01 mysql-uroot-partition tablename04alter table add fieldname fieldtype05alter table table1 add id int unsigned not Null partition primary key06alter table TN chang 1_newfieldname fieletyep null or not partition table
Last_Errno: 1062, Last_Error: Error 'duplicate entry '... 'for key'primary'' on query. in the detailed analysis process, I have never encountered 1062 problems in the online environment. the development environment of the test environment keeps
When inserting data in MYSQL, duplicate data is ignored. when inserting data in the program, existing data is not inserted, and non-existing data is inserted. You can use the stored procedure or not exists to determine whether the stored procedure
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