Solution of Mycat distributed database architecture -- Separation of reading and writing by Mycat

Echo editor, welcome to reprint, reprint please state the source of the article. Welcome to add echo wechat (wechat: t2421499075) for communication and learning Never lose in a hundred battles, never claim to win, never lose in a hundred defeats, and strive to move forward. ——This is really powerful!!! After the installation, we h ...

Posted by simonoc on Mon, 04 Nov 2019 18:45:35 -0800

Spring boot implements simple addition, deletion, modification and query as well as conditional paging

condition Use Spring boot, mybatis and mysql to realize the following functions User list User increase Information modification Information view User search paging ps: the page engine uses the thmeleaf engine recommended by Spring boot The renderings are as follows step ...

Posted by Kainproductions on Mon, 04 Nov 2019 09:11:38 -0800

Import of sqoop | Hive|Hbase

Import data (cluster as object) In Sqoop, the concept of "import" refers to the transfer of data from non big data cluster (RDBMS) to big data cluster (HDFS, HIVE, HBASE). It is called "import", that is, using the import keyword. 1 RDBMS to HDFS 1) make sure the Mysql service is turned on normally 2) create a new table i ...

Posted by Anders_Scales on Mon, 04 Nov 2019 07:26:50 -0800

Linux MySQL-5.7.18 release installation guide

The installation process is basically the same as that of the source version. In addition to the compilation phase, this article only talks about the release version, that is, the version with bin file Benefit: each user can install their own MySQL Server Target host system: CentOS 6.8 User: saojie (without administrator rights) Directory: / ho ...

Posted by Shandrio on Mon, 04 Nov 2019 07:21:11 -0800

With MySQL, what are the pits in SQL mode, do you know?

SQL MODE is a system variable in MySQL, which can be composed of multiple modes. Each MODE controls a behavior, such as whether to allow the divisor to be 0, and whether to allow the value of '0000-00-00' in the date. Why should we pay attention to SQL mode? First, look at three simple demos (MySQL 5.6). 1. mysql> create table t1(c1 da ...

Posted by austrainer on Sun, 03 Nov 2019 17:44:30 -0800

Flask -- database connection pool

Catalog Database connection pool pymsql linked database Database connection pool version Database connection pool pymsql linked database import pymysql conn = pymysql.connect(host='127.0.0.1', port=3306, user='root', passwd='123456', db='s8day127db') cursor = conn.cursor(cursor=pymysql.cursors.D ...

Posted by johnSTK on Sun, 03 Nov 2019 02:52:08 -0800

Database system -- MySQL statement and stored procedure

I. common statements of DDL, DML and DCL 1. DDL (Data Definition Language) database definition language (1) database schema definition #Create database create database if exsites db_name; #Selected database use db_name; #Delete database drop database if exists db_name; #modify the database alter database db_name set ...; #S ...

Posted by ChrisFlynn on Sat, 02 Nov 2019 23:01:58 -0700

[Hive] install Hive on Mac

I. installation Hive installation: brew install hive mysql installation: brew install mysql Start MySQL: bash mysql.server start 2. Metabase configuration Hive uses derby as the metabase by default. Here we use mysql to store metadata, and do some initialization configuration below Log in to mysql: mysql -u root ...

Posted by jd307 on Sat, 02 Nov 2019 21:50:35 -0700

Recovery of Mysql primary synchronization failure

Basic information Main storehouse: Database 2 10.126.4.2 Database 3 10.126.4.3 1. Stop database 3 external service Prevent services from writing data through database 3 during synchronization $ firewall-cmd --remove-port=3306/tcp $ firewall-cmd --add-rich-rule="rule f amily="ipv4" source address="10.126.4.2" port protocol="tcp" port="3306" a ...

Posted by Dathremar on Sat, 02 Nov 2019 16:55:46 -0700

Add mysql authentication for ftp

1. Install vsftpd. You can install it from yum or source; 2. Install mysql, skip, and view the previous documents; 3. Install PAM MySQL and rely on PAM devel package; [root@WebA-136 ~]#tar xf pam_mysql-0.7RC1.tar.gz[root@WebA-136 ~]#yum install pam-devel[root@WebA-136 ~]#./configure --with-mysql=/usr/local/mysql --with-openssl[root@WebA-136 ~] ...

Posted by spaddict on Sat, 02 Nov 2019 11:51:39 -0700