==null and is null are always mistaken, now summarize the mistakes you have encountered in your work.1, at the time of inquirySelect * from user where name is null; select * from user where name is not null 2, when updated
A few days ago, a script was used to view the events in the Redis queue without stopping. If any, take the event out and perform some database operations.It was later found that the first event of the day would lead to the occurrence of data that
First, prefaceThe database reading and writing separation strategy in distributed environment is a key solution to solve the bottleneck of database reading and writing performance, and it is to maximize the speed and concurrency of reading (read)
I would like to say that in the "Code Audit: Enterprise Web Code Security Architecture" in the book 10 kinds of MySQL error injection, it is very clear.Interested please go to read, if for some reason did not read still want to understand, then
1. How do I find the storage directory for MySQL data?A: Look at the running MySQL from the service and look at its startup parameters, which might look like this:"D:\Program files\mysql\mysql server 5.7\bin\mysqld.exe"--defaults-file=
1. OpeningDevelopers know that when the volume of data is very large, the simplicity of our code logic is very important, otherwise it will take a considerable amount of time to process. Another area to note is the SQL statement we wrote.A veteran
To back up the database:Server 1:192.168.26.210Mysqldump-uroot-p-h127.0.0.1--all-databases--flush-logs--master-data=2--lock-all-tables >all.sql650) this.width=650; "Src="
Recently the company has a tens of millions of-row large table that needs to be split into different CSV files according to the city's ID field.Wrote an automated shell scriptUnderneath the/HOME/HDH.LINUX-XUD0:/HOME/HDH # LLTotal 16-rwxrwxrwx 1 root
To view time zones:' %time_zone% ' ; +------------------+--------+| Variable_name | Value |+------------------+--------+| System_time_zone | CST | | time_zone | SYSTEM |+------------------+--------+2 in Set (0.02 sec)Check the current
To know the size of each database, proceed as follows:1. Access to the INFORMATION_SCHEMA database (information on other databases)Use INFORMATION_SCHEMA;2, query the size of all data:Select Concat (Round (sum (data_length/1024/1024), 2), ' MB ') as
Preparatory work:Install the Yum library and will download a good mysql5.7.16 installation package under the textile/opt directoryOne, the mysql5.7.16 5 program files to install (so as not to solve the centos7 of the MARIADB database
1. Upload 5 MySQL installation packages on a local virtual machine2. Check if the OPT directory has these 5 installation packages
12
yum install/var/opt/mysql-community-* -y //安装MySQLsystemctl restart mysqld.service
Objective:In the previous blog, we have implemented a file-based authentication FTP service, but this method also has a lot of problems, such as bad user data management Ah, in plain text storage is not safe. The user data can not be stored
Win7 installation MySQL-5.7.16 process, win7mysql-5.7.16
1. Create a MYSQL folder on drive C;2, copy the mysql-5.7.16-winx64 to the C: \ MYSQL folder, renamed mysql-5.7.16;3, in the mysql-5.7.16 directory, create my. ini file, the content is as
Mysql and mysql download
In database operations, especially when encountering complex systems, it is inevitable that functions, user-defined functions, or stored procedures are used.
In actual projects, the fewer user-defined functions and stored
SQL Server COALESCE function details and examples, coalesce function details
SQL Server COALESCE Functions
Many people know the ISNULL function, but few know the Coalesce function. People will accidentally use the Coalesce function and find it more
Mysql 5.7.17 installation and configuration method graphic tutorial (CentOS7), 5.7.17centos7
Notes for installing mysql on centos 7
1. mariadb database is installed on CentOS7 by default., Uninstall mariadb.
Rpm-qa | grep mariadb
Yum remove mariadb-
Implementation of grouping statistics for MYSQL every 10 minutes.
Preface
The content of this article mainly introduces the implementation method of MYSQL grouping statistics every 10 minutes. It will be very useful in drawing the user login and
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