List of storage space and value ranges occupied by various INTEGER MySQL types
List of storage space and value ranges occupied by various INTEGER MySQL types
Best practices
UNSIGNED can only store non-negative integer SIGNED. it can store
A recent study of mysql, the latest 56 mysql, compressed version from the oracle official website. Today, it took me a long time to try the Mysql replication function and share my experiences with you. We use the database we developed and deployed
This article mainly introduces the MySql stored procedure and function details, which are very detailed. if you need it, you can refer to the stored procedure and function as a set of SQL statements defined in the database, then, you can directly
The Linux server automatically shuts down the company's linux server. the mysql server is shut down for no reason and the cause is not found. Version: '5. 6.13-enterprise-defined cial-advanced 'socket: '/var/lib/mysql. sock 'Port: 3306 MySQL
MySQL search: the WHERE condition can be used to search by specifying a search condition.
In a SELECT statement, data is filtered based on the conditions specified in the WHERE substatement. The WHERE substatement is given after the table name.
Mysql allows remote connection
1. Port 3306 is not enabled?
Run the nestat command to view the status of port 3306:
~ # Netstat-an | grep 3306
Tcp 0 0 127.0.0.1: 3306 0.0.0.0: * LISTEN
The result shows that Port 3306 only listens to the IP address 1
Mysql forgets the root password 1 and stops the MYSQL service. In CMD, open the DOS window and enter net stop mysql.
2. in the CMD command line window, enter the MYSQL installation directory, such as E:/Program Files/MySQL Server 5.0/bin.
Demo
Considerations for mysql table design time fields:
I haven't worked on the jdbc coding and database table design of mysql for a few years. I just got started and found it was a problem during the test. here I am referring to the design problem of
MYSQL common functions
########### Date functions ###########
Select now (); -- yyyy-mm-dd hh: mm: ssSelect curdate (); -- yyyy-mm-dd of the current daySelect (curdate ()-interval (weekday (curdate () + 1) day); -- the first day of the weekSelect
Mysql's large amount of data operation techniques have been used to export data to the company in recent days, mainly involving mysql operations. after a few days, I have been very careful with the boss's correction:
For example, in the ex_table
Part1: SenchaTouchEmail + FacebookLoginSystemwithPHPamp; amp; MySQLBackend One really common pattern found in mobile applications is a dual email + Facebook log in system. Facebook is a very popular sign in method, but not
EverybodyHas an account
MySQL: ONDUPLICATEKEYUPDATE
This statement is in mysql, but not in standard SQL statements.
Insert into .. on duplicate key to update multiple rows
If on duplicate key update is specified at the end of the INSERT statement, and DUPLICATE values
JDBC big data access // Big data access. generally, large text or binary data is not stored in the database;
// Big data is divided into clob for text storage; blob for storing binary data, images, sounds, binary files.
// Mysql has no clob and only
An invalid column is inserted when MySQL inserts data.
1. Error Description
Com. mysql. jdbc. exception: jdbc4.MySQLSyntaxErrorException: Unknown column 'man' in 'Field list'
2. error cause
Field in the database table: sno sname sage ssex
12. mysqlsql_mode
1. in general, SQL _mode is empty by default, that is, the SQL check is not strict. 2. if SQL _mode is null, test: create table tt3 (name char (2 )); // define a tt3 table with the name field length of 2 to insert into tt3 values
Fastest paging method for mysql
The mysql page is written as follows:
Select * from 'yourtable' limit start, rows
A table in my database contains million pieces of data. The table name is tweet_data.
Select count (*) from tweet_data
Run
Summary of how MySQL deletes duplicate data from a database
At the beginning, according to my thoughts, this is very simple.
delete from zqzrdp where tel in (select min(dpxx_id) from zqzrdp group by tel having count(tel)>1);
Run the command. an
MySQLinsertsduplicaterecordsdespiteuniqueindex | LeaseWebLabs Okay, so I thought I knew quite a bit about databases and so I added a unique index. For those who do not know:
A unique index creates a constraint such that all values in the index
MySQL database automatic backup and restoration after Database destruction 1
I. preface:
After the database server is set up, the first thing we need to do is not to consider which MySQL-initiated programs should be run on the server that supports
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