Create bitsCN.com for MySQL scheduled tasks
Create a scheduled task for MySQL
In actual projects, you only want to save the records of the last seven days in the MySQL database. it is troublesome and inefficient to delete the records using SQL
Float and decimal type bitsCN.com in MySQL
Float and decimal types in MySQL
Float and double are prone to errors. when the precision requirements are relatively high, decimal is recommended for storage. decimal is stored in mysql memory as a
We recommend that you use a business-independent auto-increment ID as the primary key for Innodb without special requirements.
We recommend that you use the auto-increment ID that is not related to the business as the primary key for Innodb without
Forget MySQLROOT password bitsCN.com in Window7
Forget the MySQL ROOT password in Windows 7
The solution is as follows:
1. stop mysql service
Net stop mysql
2. start mysql without checking permissions
Mysqld -- skip-grant-tables
You can
Mysql format example bitsCN.com
Mysql format example
I wrote a mysql formatting example.
DELIMITER $
Drop procedure if exists 'testdb'. 'test _ p_getTimeRange '$
Create definer = 'ipd' @ '%' PROCEDURE 'test _ p_getTimeRange '(OUT
Install bitsCN.com on the DBI and DBD-mysql modules
Install the DBI and DBD-mysql modules
I. DBI installation
Wget http://www.cpan.org/modules/by-module/DBD/DBI-1.604.tar.gz
Tar-zxvf DBI-1.604.tar.gz
Cd DBI-1.604
Perl Makefile. PL
Make
Make
Analysis of Mysql data Rollback Error solution bitsCN.com
Solutions to Mysql data rollback errors
This section describes how to solve Mysql data rollback errors. For more information, see
There are two main methods to process MYSQL transactions.
Introduction to MySQL advanced query and GroupBy collection bitsCN.com
MySQL advanced query and use of Group By sets
In MySQL, you can obtain the join value of expression combinations.
You can use DISTINCT to delete duplicate values. If you want
MySql multi-to-multi-link foreign key application Mysql foreign key
BitsCN.com
Business Requirements: The user table r_user stores user name and other information. Now you need to set up a work base for each user. one user can have multiple work
Mysql User-defined functions implement string matching bitsCN.com
Mysql User-defined functions implement string matching
First:
The first parameter of the fSearch function is a single string (that is, no special string is separated)
The first
Difference and advantages of timestamp, datetime, int type in mysql bitsCN.com
Differences and advantages of timestamp, datetime, and int types in mysql
Int
1. occupies 4 bytes
2. fast query after an index is created
3. you can use between for
[Mysql] shell runs mysql SQL statement bitsCN.com
[Mysql] SQL statement used by shell to run mysql
Shell itself is a scripting language, so it cannot connect to the database through APIs like java. Shell still needs to execute SQL statements by
Modify the character set encoding of MySQL5.6 in Linux to UTF8 (to solve Chinese garbled characters) bitsCN.com
Modify the character set encoding of MySQL5.6 in Linux to UTF8 (to solve Chinese garbled characters)
1. log on to MySQL and use show
Usage of mysqltoolkit [memo] bitsCN.com
Mysql toolkit is a small plug-in used to monitor and analyze databases. it is usually used to call perl to analyze and compare the current environment and database. it is worth learning.
Use mydumper to back up MySQL database bitsCN.com with multiple threads
Mysqldump: one of its features is that the list needs to be locked during processing. Therefore, if we need to perform backup during working hours, it will cause DML blocking.
Modify mysql database password bitsCN.com
How can I reset a password when I forget the password of mysql?
1. use mysqladmin to change the mysql passwordC:/> mysqladmin-udbuser-p password newpassEnter password: oldpassOf course, the premise of
Analysis on master-slave replication process of MySQL server bitsCN.com
The master-slave replication of the MySQL server is divided into two situations: the MySQL version of the slave server in the replication structure is the same or higher than
Implementation of auto-incrementing sequence generator bitsCN.com
Implementation idea of auto-incrementing sequence generator l requirement u achieves the equivalent function of auto-incrementing field values in MySQL; the auto-incrementing field
MySQL experience 8-1-use a client program to back up and restore bitsCN. comMySQL experience 8-1-use the client program to back up and restore 1. the loss or destruction of data in the backup and recovery requirements analysis database may be due to
Learn PHPamp; amp; MySQL-character encoding (2) bitsCN.com
Next to PHP & MYSQL-character encoding (1), this article mainly describes MySQL garbled characters and character set settings.
MySQL character set conversion process is as follows:
This
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