Best practice | RDS & POLARDB archiving to X-Pack Spark computing
The X-Pack Spark service provides Redis, Cassandra, MongoDB, HBase and RDS storage services with the ability of complex analysis, streaming processing, warehousing and machine learning through external computing resources, so as to better solve user data processing related scenario problems.
RDS & polardb sub table archiving to X-Pack S ...
Added by cyber_ghost on Thu, 07 Nov 2019 08:55:51 +0200
Python 3 selector crawls Douban reading information and stores it in Excel table or mysql database
I. crawling for Douban reading information
Only the title and score of Douban's reading information are crawled here
Crawling method is to search according to the selector corresponding to the required information in the web page.
For example: Https://book.doublan.com/tag/fiction On the page, climb to the name of th ...
Added by happyneil on Thu, 07 Nov 2019 01:31:44 +0200
Differences between MySQL 5.6 and MySQL 5.7 installation
I. differences between MySQL 5.6 and MySQL 5.7 installation
1. cmake added boost to download boost.org
2. When initializing cd /application/mysql/bin/mysql, use mysqld --initialize to replace MySQL? Install? DB. Other parameters remain unchanged: - user= --basedir= --datadir=
3. -- initialize will generate a temporary password
4. You can also ...
Added by furnissg on Mon, 04 Nov 2019 18:44:39 +0200
Spring boot realizes dynamic control of timed tasks - supports multiple parameters
Due to work reasons, it is necessary to dynamically add, delete, modify and check timed tasks. Most of the data on the Internet are realized by integrating the quertz framework. I checked some data and found that springBoot itself supports the dynamic control of timing tasks. And it is improved to support any multi parameter timing task configu ...
Added by jsimmons on Sat, 02 Nov 2019 11:08:01 +0200
The history of MySQL Python installation on Mac
Phenomenal description
At first, the pip command prompts the following errors:
cc -bundle -undefined dynamic_lookup -Wl,-F. build/temp.macosx-10.14-intel-2.7/_mysql.o -L/usr/local/Cellar/mysql-connector-c/6.1.11/lib -lmysqlclient -lssl -lcrypto -o build/lib.macosx-10.14-intel-2.7/_mysql.so
ld: library not found for -lssl
clang: error: linke ...
Added by kiss the robot on Fri, 01 Nov 2019 08:43:06 +0200
MySQL error deletion database recovery practice
Create test library and table
create database test;
use test;
create table leo (id int,name varchar(10));
insert data
insert into leo values (1,"liufeng");
insert into leo values (2,"zhangsan");
insert into leo values (3,"liufeng");
insert into leo values (4,"zhangsan");
mysql> select * from leo;
+------+----------+
| id | name |
+-- ...
Added by Zup on Fri, 01 Nov 2019 02:49:35 +0200
MyCat configuration and use
Mysql should also be installed on the MyCat host.
I. read write separation configuration:
1. Upload or download:
wget http://dl.mycat.io/1.6.7.1/Mycat-server-1.6.7.1-release-20190627191042-linux.tar.gz
2. Decompress:
tar xzvf /srv/ftp/Mycat-server-1.6.7.1-release-20190627191042-linux.tar.gz -C /usr/local/
3. Open the configuration ...
Added by hmmm on Thu, 31 Oct 2019 21:02:45 +0200
Introduction to ORM framework SQLAlchemy
Related information/Official website address
1. Install sqlalchemy and check the version
Execute the following statement under the command line to install:
pip install SQLAlchemy
View version after installation:
import sqlalchemy
print(sqlalchemy.__version__)
In addition, PyMySQL needs to be installed, otherwise an error of modulenotfounderr ...
Added by prasad_deba on Thu, 31 Oct 2019 11:00:31 +0200
SQL statement precompile (query)
SQL statement precompile
Pre compilation of SQL statements can prevent SQL injection and improve security because SQL statements have been precompiled before the program runs. Before the first operation of the database, SQL statements have been analyzed, compiled and optimized by the database. The corre ...
Added by Scummy12 on Thu, 31 Oct 2019 10:05:39 +0200
left join multi table query optimization in mysql
sql optimization of left join in MYSQL
An example of sql super slow recently is as follows
The table creation statement is as follows
The execution time is about 4 seconds, the speed is too slow, the experience is too poor
An example of sql super slow recently is as follows
The table creati ...
Added by Splynx on Wed, 30 Oct 2019 21:05:40 +0200