[sonar error prompt]
1. Error code
/domain/xxxx.java for block at line 44. Keep only the first 100 references.
WARN: Too many duplication references on file src/main/java/com/easy3w/ebs/pb/be
/domain/xxxx.java for block at line 47. Keep only the first 100 references.
WARN: Too many duplication references on file src/main/java/com/easy3w/ebs/pb/be
/domain/PBBE0 ...
Posted by Smifffy on Sat, 04 Jan 2020 17:06:48 -0800
Pyhton crawler case (4) -- item inserted into MySQL database
In this section, how to insert the crawled data into mysql database is discussed. The tools used are PyCharm and Navicat for MySQL or Navicat Premium
The crawled website is: http://books.toscrape.com/ , which is explained in many tutorials. Let's open navicat, create a new query, and create a table in the editor (using the dat ...
Posted by Salkcin on Sat, 04 Jan 2020 15:29:38 -0800
Installation, deletion, modification and query of database in linux
Installation and initialization of mariadb
yum install mariadb-server.x86_64 -y
systemctl status mariadb
systemctl start mariadb
systemctl enable mariadb
mysql
netstat -antlupe | grep mysql See mysql port
vim /etc/my.cnf
//Add skip networking = 1 skip network for security
systemctl restart mariadb Restart service
mysql ...
Posted by DeadDude on Sat, 04 Jan 2020 11:44:08 -0800
Mysql start / view slow query log
Mysql view slow query log
0. environment
windows10
mysql5.7
1. demand
In normal programming, for a slow SQL, we may need to view the "slow query" log of the SQL. We can get some inspiration from this log, so as to optimize the SQL and reduce the query time. But how to open and search the slow query log of mysql? ...
Posted by hadoob024 on Sat, 04 Jan 2020 10:27:06 -0800
Separation of reading and writing of mysql through mycat
The master-slave configuration of mysql follows the configuration of the previous blog: https://www.cnblogs.com/MasterSword/p/9434169.html
MYCAT download address: http://www.mycat.io/
Trial version: Mycat-server-1.6-release
# cd /usr/local
# mv ~/Mycat-server-1.6-RELEASE-20161028204710-linux.tar.gz /usr/local
# tar -zxvf Mycat-server-1.6-RELEA ...
Posted by bla5e on Sat, 04 Jan 2020 07:06:32 -0800
Monitoring with ZABBIX server
I. ZABBIX server installation
Environment: linux 7.3 host ip: 172.25.17.11
1. Prepare the installation package:
Install all:
[root@server11 mnt]# yum install * -y
2. Install the database and open the service to set the database password:
[root@server11 mnt]# yum install mariadb-server -y
[root@server11 mnt]# systemctl ...
Posted by thompsonsco on Sat, 04 Jan 2020 04:38:56 -0800
Using Go language to operate MySQL database
Recently, I learned to use Go language to operate MySQL database to add, delete, modify and query user data when I was doing the registration and login service. Now I summarize my personal learning experience as follows, and attach Code warehouse address Welcome to fork.
Software environment: Goland, Navicat for MySQL.
1, Realization ideas
1 ...
Posted by Potatis on Sat, 04 Jan 2020 03:05:34 -0800
MySQL database whole database backup script
MySQL database whole database backup script
Author: old farmer (Liu Qihua)
QQ: 46715422
Email: 46715422@qq.com
Wechat: 46715422
Test operating system environment: CentOS 6/7, Debian 8/9, FreeBSD 11/12
Test MySQL version: 5.7.23
User name and password: mysql
The database we need to back up this time: test
Script required for backup: bac ...
Posted by ViN86 on Fri, 03 Jan 2020 21:39:36 -0800
Import mysql data to redis
Using script to simulate the implementation of redis cli on the client side of redis: (Note: mysql address is 10.86.30.203 redis address is 10.86.31.50)
1. First determine the columns of mysql table:
desc test;
+-----------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra ...
Posted by scuff on Fri, 03 Jan 2020 21:03:30 -0800
MySQL basic part: summary of system and custom function, detailed explanation of trigger use
1, System encapsulation function
MySQL has many built-in functions, which can quickly solve some business requirements in development, including process control function, numerical function, string function, date time function, aggregation function, etc. The functions commonly used in these classifications are listed below.
1. Control flow f ...
Posted by netdynamix on Fri, 03 Jan 2020 12:52:53 -0800