Database for Go Web Programming

Summary A database is used to store data.As long as it's not a toy project, a database is needed for each project.MySQL is still the most used. PostgreSQL Use is also growing rapidly. In Web development, databases are also required.This article describes how to operate a database in Go Language based on MySQL.This article assumes that you alrea ...

Posted by sri.sjc on Tue, 21 Jan 2020 14:59:48 -0800

Using jar to connect and operate MySQL database

Why use database If you want to ask where the data comes from, it may be that no matter where Xiaobai has been working for many years, he will say in unison, of course, database. So why use database? Extract: database is a "record keeping system" (the definition emphasizes that database is a ...

Posted by jimmyo on Mon, 20 Jan 2020 23:18:55 -0800

Springboot+mybatis project - automatically create DaoMapper class and mapper.xml through database table and entity class

Recently, I practiced the springboot project, and found that the implementation of mapper.xml and DaoMapper interface class methods of mybatis framework is too arduous. Although it improves the flexibility, when there are too many tables, it is very tiring to write this part alone, so I found out how ...

Posted by ebgames56 on Mon, 20 Jan 2020 07:40:03 -0800

The construction of springboot workflow activiti

concept Workflow products use activiti a lot. They come with a set of UI, which can be used directly to design processes. Here is a brief summary of its steps: 1 design model 2 publish as process. A model can publish multiple versions of process 3. Establish a process instance and instance task. A process can establish multiple parallel ins ...

Posted by k3Bobos on Mon, 20 Jan 2020 06:51:07 -0800

AOP dynamic data source switch to separate master and slave read and write

Preface MySQL master-slave can better reduce the pressure of database. Today, we have a small demo. The read-only interface allows him to query the database and implement it by annotation. Code upload to code cloud:https://gitee.com/yunup/some-examples environmental information Java version 1.8 Spri ...

Posted by kippi on Sat, 18 Jan 2020 08:31:05 -0800

Spring boot upload and echo pictures

I met this problem last time when I was working on a personal blog project. Now let's write down the solution steps IDE: IDEA Language: java Framework: spring boot Template engine: thymeleaf 1, See the effect1. Picture submission2. Picture display2, Design process 1.pom.xml <dependency> <g ...

Posted by mailjol on Sat, 18 Jan 2020 05:19:44 -0800

Django and Vue develop web separately

@3 month concentrated essence Django and Vue joint project development Project environment construction 1. Build a virtual environment Virtual environment establishment 2. Install django Activate virtual environment, install Django, build myweb project pip installation slow reference: https://blog ...

Posted by webrajesh on Sat, 18 Jan 2020 05:01:20 -0800

centos7 mounts the new hard disk and modifies the storage path of mariadb

Environment CentOS7.4 mariadb 5.5 In principle, all mariadb installed from yum can be used Because the paths of / var/lib/mysql and / etc/my.cnf are the same The reason for this operation is that zabbix's history problem log has filled the disk, so you can only add a new hard disk and change the mysql storage path ------------------------- ...

Posted by br on Fri, 17 Jan 2020 23:53:23 -0800

Quick review of MySQL: subqueries

Article Directory 11.1 Subquery 11.2 Use subqueries as calculated fields 11.3 Subquery Skills Prerequisite: Reference book MySQL is sure 11.1 Subquery Subqueries, as the name implies, are queries nested in other queries. Create the following tables first: ############################### # Role ...

Posted by Scifa on Fri, 17 Jan 2020 19:45:03 -0800

Backup database using cp command

cp command backup is a warm, full backup, the backup process needs to maintain a global read lock, this lock is more lethal to the database, it is likely to make the database hang in production environment, so it is not recommended to use in production environment. 1. Backup 1. Add a global read lock to the backup library: fl ...

Posted by djopie on Thu, 16 Jan 2020 09:39:26 -0800