Benchmarking for MySQL
What is a benchmark
When we optimize the database, we only know if the optimization is effective by measuring the performance of the system. This measurement is benchmarking.Benchmark tests are defined as follows:
Benchmarking is the activity of measuring and evaluating software performance indicators to establish a performance benchmark at a ...
Posted by dsdsdsdsd on Sun, 12 Jan 2020 08:50:37 -0800
Data connection pool - DBCP
I think DBCP is a little more complex than c3p0, but DBCP also has a certain share of use, so I recommend learning it
To establish a DBCP connection pool:
1. Import jar package (DBCP needs more jars, four)
Don't mention the jar package for operating the database, as mentioned in the last blog
commons-dbcp2-2.5.0.jar and com ...
Posted by DonelleJenae on Sun, 12 Jan 2020 07:35:01 -0800
Mysql function use practice
I. actual purpose
Use all kinds of functions to operate data, and master the functions and use methods of all kinds of functions.
II. Actual operation process
1 use the math function RAND() to generate 3 random integers within 10.
The random number generated by the RAND() function is between 0 an ...
Posted by footbagger on Sun, 12 Jan 2020 03:09:38 -0800
SQL -- a common function of DQL
concept
Similar to the java method, a group of logic statements are encapsulated in the method body to expose the method name;
Benefits:
1. Hidden implementation details
2. Improve code reuse
Call:
select function name (argument list) [from table];
Characteristic:
① What is the name (function name)
② ...
Posted by djjamiegee on Sun, 12 Jan 2020 02:28:34 -0800
Mycat Integration MySQL 8.x Trample Practice
Mycat currently does not fully support versions of MySQL 8 or above, which may cause problems such as incorrect passwords when Mycat connects to MySQL 8 because the new version does not encrypt the password the same way as the old version.There is also the time zone issue, and the new version of the connection requires additional time zone par ...
Posted by Dawg on Sat, 11 Jan 2020 14:26:02 -0800
150.OpenStack Train version - 2. Install keystone authentication service
1. Create keystone database and authorize
[root@controller ~]# mysql -uroot
CREATE DATABASE keystone;
GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'localhost' IDENTIFIED BY 'KEYSTONE_DBPASS';
GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'%' IDENTIFIED BY 'KEYSTONE_DBPASS';
2. Install ke ...
Posted by will_1990 on Sat, 11 Jan 2020 07:16:16 -0800
Docker installs the latest version of Mysql (Mysql8.0)
Docker installs the latest version of Mysql (Mysql8.0)
Docker environment configuration
Mysql8.0 configuration
Note:
Note 1
Note 2
Last
Congratulations, docker MySQL has been built successfully!
If you think the writing is good, please click below to give a reward, thank you!!
Original: product R ...
Posted by HiddenS3crets on Sat, 11 Jan 2020 00:27:57 -0800
Build WNMP environment from scratch
WNMP environment building steps
Installation of three major parts
Nginx installation
PHP installation
MySQL installation
Three piece configuration
Nginx configuration
PHP configuration
MySQL configuration
Three piece joint commissioning
PHP connection Nginx
PHP connection to MySQL
Common script ...
Posted by M.O.S. Studios on Sat, 11 Jan 2020 00:12:52 -0800
Elastic search integrates spring boot to realize search function
Catalog
1 define data structure by mapping of es
Default data type of Es
The mapping structure of es is defined as follows
2 import Jest dependency
3. Import mysql data for es
Configure application.properties
Define the java class corresponding to es data structure
Insert mysql data into es
...
Posted by dubc07 on Sat, 11 Jan 2020 00:08:20 -0800
MySQL Data Backup and Recovery
Preface
MySQL backup generally uses full library backup plus log backup. Depending on business needs, you can use full backup at 1 a.m. every Sunday and incremental backup every hour to recover the most complete data when MySQL fails.
1. Bilog Log Recovery
MySQL's binary logs record all additions and deletions to the database (provided you hav ...
Posted by NickG21 on Fri, 10 Jan 2020 20:14:04 -0800