MySQL associated query

Two tables Table A is A public curriculum with two fields, i.e. id and pro name. There are about five courses, and each of them should go to Table B is the association table of user and course reminders. It has four fields: ID, pro ID, user ID and tip time, which respectively represent ID, course ID, user ID and reminder class t ...

Posted by ReD_BeReT on Sun, 24 Nov 2019 11:09:53 -0800

Dockerfile binary separation deployment LNMP(Centos7)

Dockerfile common instructions: 1. FROM: which image is used to build the imageFor example: FROM centos2. MAINTAINER: name or email address of image MAINTAINERFor example: maintainer sun Qi Ming3. RUN: the shell command to RUN when building the imageFor example:RUN [ "yum","install","httpd"]RUN yum -y install httpd4. CMD: shell command execute ...

Posted by anand_ragav on Sun, 24 Nov 2019 10:39:26 -0800

Index and view details of Mysql database

Index and view details of Mysql database The concept of index The index of a database is similar to that of a BookIn a book, you can quickly find the required information by using the catalog without reading the whole bookThe table of contents in the book is a list of words with page numbers containing each wordDatabase indexIn the database, ...

Posted by dyconsulting on Sun, 24 Nov 2019 07:02:30 -0800

Vsftpd realizes user authentication based on MySQL

VSFTP introduction VSFTP is a kind of FTP server software used on Unix like system published based on GPL. Its full name is Very Secure FTP. Software installation yum install vsftpd mariadb-server mariadb-devel pam-devel -y wget http://prdownloads.sourceforge.net/pam-mysql/pam_mysql-0.7RC1.tar.gz tar xf pam_mysql-0.7RC1.tar.gz cd pam_mysq ...

Posted by maGGot_H on Sat, 23 Nov 2019 13:24:44 -0800

Go micro project practice one create user service

User service User service, providing login, registration, password modification and other functions. New service micro new shopping/user Finishing structure Add the model directory and repository directory, delete the default example folder in proto, and create the user folder. Development steps: 1. Define interface - > ...

Posted by proiek on Sat, 23 Nov 2019 09:31:55 -0800

About mysql database migration, the pit encountered by datetime

Migration database is often encountered in work.If you use phpmyadmin to import, you can solve the problem if the database is too small. If it is too large, it will be troublesome. Either it will time out or the file is too large to import.So I chose to use Navicat For Mysql to copy the database In this process, I often encounter a problem: ERR ...

Posted by dannyb785 on Sat, 23 Nov 2019 09:28:42 -0800

Build Linux:LAMP Environment

Setup of LAMP Environment Install DNS Server Install DNS Service yum install bind -y Configuration of DNS Create Forward Resolution For example, create a forward lookup zone named "lsy.com": Step 1: Create a lookup zone in the main configuration file/etc/named.conf. vim /etc/named.conf listen-on port 53{any ...

Posted by bulgin on Sat, 23 Nov 2019 00:46:29 -0800

Spark - upgraded data source JDBC 2

In the data source of spark, only Append, Overwrite, ErrorIfExists, Ignore are supported. But almost all of our online businesses need the upsert function, that is, the existing data must not be overwritten. In mysql, we use: ON DUPLICATE KEY UPDATE. Is there such an implementation? Official: sorry, no, dounine: I have it. You can ...

Posted by smordue on Fri, 22 Nov 2019 07:03:24 -0800

ORDER BY Causes Poor Index Use

Indexes are often not used as expected in MySQL, and logging the use of an Order by statement today results in an index not being used as expected. 1. Problem phenomena 1.1 SQL statement: SELECT DISTINCT p.* FROM tb_name p WHERE 1=1 AND p.createDate >= '2019-10-23' AND p.createDate <= '2019-11-20 24:00:00' AND p.status = '1' AND p.a ...

Posted by phpbeginner on Thu, 21 Nov 2019 18:42:54 -0800

Database Introduction and MySQL Version 5.7 Compile Installation (Actual!)

Basic concepts of databases Data: Symbolic records describing things are called data. Include numbers, text, graphics, images, sounds, file records, etc. Store in a uniform format as a "record". Table: A table is formed by grouping different records together Is used to store specific data Database: A database is a collection of ...

Posted by fri3ndly on Thu, 21 Nov 2019 18:20:54 -0800