Alicloud (CentOS7.4) installs MySQL and connects MySQL locally and remotely

Alicloud (CentOS7.4) installs MySQL and connects MySQL locally and remotely Install MySQL using yum Step 1: check whether mysql exists on this machine rpm -qa | grep mysql yum info mysql-community-server Step 2: copy the download address of Yum community mysql on the official mysql website https://dev.mysql.com/downloads/ https://dev ...

Posted by turing_machine on Fri, 21 Jan 2022 20:33:03 +0100

Sql common errors_ two

1. Exits statement When MySQL treats the EXISTS clause, it still adopts the execution method of nested subquery. As shown in the following SQL statement: SELECT * FROM my_neighbor n LEFT JOIN my_neighbor_apply sra ON n.id = sra.neighbor_id AND sra.user_id = 'xxx' WHERE n.topic_status < 4 ...

Posted by rehfeld on Fri, 21 Jan 2022 15:48:26 +0100

[notes of Sofice company] 4 JDBC, including connection database, CRUD, transaction, connection pool, etc

JDBC The JDBC interfaces provided with the Java standard library actually define a group of interfaces, and a specific jdbc driver is actually a class that implements these interfaces In Java code, if you want to access MySQL, you must write code to operate the JDBC interface. Note that the JDBC interface comes with the Java standard library, ...

Posted by kailien on Fri, 21 Jan 2022 05:21:22 +0100

Based on SQL (based on MySQL)

1 SQL overview 1.1 what is SQL SQL (Structured Query Language) is a "structured query language", which is an operation language for relational databases. It can be applied to all relational databases, such as MySQL, Oracle, SQL Server, etc. SQL standards (ANSI/ISO) include: 1. SQL-92: SQL language standard issued in 1992; 2. SQ ...

Posted by jtapoling on Fri, 21 Jan 2022 01:15:27 +0100

GBASE 8A administrator manual basic management

Start and stop of service When GBase 8a is installed, GBase.com The server service needs to be started manually. After that, whenever the machine is powered on and restarted, GBase All server services need to be started manually. If the user needs to manually start and stop the GBase service during use, the user who installed GBase 8A should b ...

Posted by tentaguasu on Thu, 20 Jan 2022 23:49:06 +0100

mysql advanced -- view, stored procedure, function, trigger

1, View 1. Concept View is to wrap a more complex query statement in the view to simplify the statement. Views are stored in the database and can be reused. Data is not stored in the view. The data of the view exists in the base table of the view and changes based on the change of the table data. 2. Why use views? In order to facilitate ...

Posted by jtron85 on Thu, 20 Jan 2022 19:00:17 +0100

Reading notes on high performance MySQL

preface I'm going to open a new series, which is a new field I haven't touched much before, called performance tuning. When I read the word "performance tuning" when I was brushing my blog, I was stunned and felt that time had stagnated. I found that I didn't know the performance level of the project code I wrote. Even if it ...

Posted by Lautarox on Thu, 20 Jan 2022 14:17:27 +0100

MySQL query expression

CREATE DATABASE IF NOT EXISTS cms DEFAULT CHARACTER SET utf8; USE cms; -- Administrator table cms_admin CREATE TABLE cms_admin( id TINYINT UNSIGNED AUTO_INCREMENT KEY, username VARCHAR(20) NOT NULL UNIQUE, password CHAR(32) NOT NULL, email VARCHAR(50) NOT NULL DEFAULT 'admin@qq.com', role ENUM('General administrator','Super administrator') ...

Posted by 2DaysAway on Thu, 20 Jan 2022 08:19:45 +0100

MySQL advanced -- trigger

1. General Trigger is a special stored procedure. Like stored procedures, triggers are SQL fragments that can complete specific functions and are stored on the database server. However, triggers do not need to be called. When DML operations are performed on the data in the database table, the execution of this SQL fragment is automatically tri ...

Posted by astoller on Thu, 20 Jan 2022 03:00:11 +0100

The difference between Oracle and Mysql

The difference between Oracle and Mysql 1, Main differences 1. Software specification: Oracle is a large database, which occupies a lot of memory;Mysql is a lightweight database, which is lightweight and occupies less memory; ps: I pulled the image of the two with docker. mysql is 545M in size, while oracle11g requires 6.85G 2. Expenses: ...

Posted by endlyss on Thu, 20 Jan 2022 02:34:07 +0100