MySQL Blackhole: black hole engine
Check the output of SHOW ENGINES; or SHOW VARIABLES LIKE 'have%'; to see whether the previous mysql version supports this engine.
mysql> show engines;
+--------------------+---------+----------------------------------------------------------------+--------------+------+------------+
| Engine | Support | Comment ...
Posted by chriswheat on Sat, 30 Nov 2019 05:13:34 -0800
mysql no backup recovery
Environment: centos 7.4+ mysql 5.7.19
When the database is damaged without backup, the data can be recovered from the disk file, which may not be 100% successful. The tool used is undo-for-innodb-master.zip
First, recover the table structure from frm (using MySQL utilities tool)
1. Install MySQL utilities
#yum localinstall mysql-connector-pytho ...
Posted by kirannalla on Sat, 30 Nov 2019 04:26:02 -0800
One of the common functions in MySQL
Built-in function
1. Get the current time date [format (now(),% Y% m% d% H% I ')
Get current time
select date_format(now(),'%Y%m%d%H%i')
2. Concat string (STR1, STR2,...) )
Concatenate string
select CONCAT('hello',' world!')
3. Group concat field by group ([distinct] field to be connected [Order BY ASC/DESC sort field] [Separator 'Separat ...
Posted by transfield on Sat, 30 Nov 2019 02:11:21 -0800
[open source] an implementation of Dapper Repository
Then the first one. An implementation of [open source] Entity Framework 6 Repository
Since Dapper itself is a lightweight Orm feature, please refer to Creating a Data Repository using Dapper dynamic queries in dapper Code to solve the problem of entity class and expression < func < T, bool > > predicate;
You can use Nuget: instal ...
Posted by Pezmc on Fri, 29 Nov 2019 10:29:11 -0800
Hibernate retrieval method (supplementary)
*
ps :
I. retrieval method of navigation object graph
Customer c=session.get(Customer.class,2);
c.getOrders().size();
Through mapping in Hibernate, the associated persistent object information can be obtained by navigation during hibernate operation.
II. OID search method
session.get(Customer.class,3);
session.load(Order.class,1);
In H ...
Posted by mjseaden on Fri, 29 Nov 2019 01:00:01 -0800
Scrapy - Crawl Anzhi Market app Details
Preface
This article is about using Scrapy to grab app details pages from Anzhi Market, such as click to view them Peace elite , including app name, version number, icon, classification, time, size, download, author, introduction, update instructions, software screenshots, exciting content, etc. Picture resources icon and market display (app sc ...
Posted by johnny on Thu, 28 Nov 2019 19:55:24 -0800
Mysql Access Middleware--A Preliminary Study of Atlas
Atlas is a MySQL-based data intermediate project developed and maintained by the Infrastructure Team of Qihoo 360's Web Platform Department.On the basis of MySQL's official version of MySQL-Proxy 0.8.2, it modifies a large number of bug s and adds a lot of functional features. At present, the project is widely used in 360 companies.
Atlas has t ...
Posted by JasonO on Wed, 27 Nov 2019 19:53:23 -0800
Ajax asynchronously validates the form information (information verification and duplicate judgment), and then the submit button can be clicked
The requirement is that users submit information asynchronously when registering or updating, and perform key information weight judgment and form verification
The above figure is the form to be submitted. Here, only the ID number is used for example.
<div class="input-group">
<span class="input-group-addon">ID ...
Posted by hash1 on Wed, 27 Nov 2019 09:20:48 -0800
jsp+servlet+javabean+mysql realize paging.
Want to do paging first familiar with the database, we use mysql SQL Server later.
Look at the effect.
1. You should be able to connect to the database: paging mysql is simpler than SQL server,
Page mysql for example:
"select * from name limit "+m+","+n+""
; where m refers to the index at the beginning of the record, sta ...
Posted by gregsmith on Wed, 27 Nov 2019 07:11:05 -0800
Encapsulation and use of springbatch
springbatch
It mainly realizes the processing of batch data. I encapsulate the batch and put forward the jobBase type. The specific job needs to implement it. Spring Batch not only provides a unified read-write interface, rich task processing methods, flexible transaction management and concurrent processing, but also supports logging, monitori ...
Posted by Saviola on Wed, 27 Nov 2019 06:52:52 -0800