Running multiple mysql instances on one machine

Installation instructions: A mysql program file, a configuration file, running multiple mysql instances (each with its own distinct data directory).For the convenience of the test, only two examples are used in this experiment. MySQL program installation directory: /usr/local/mysql_5.6.38 Data directories for MySQL i ...

Posted by mega_hurtz on Thu, 16 Jul 2020 09:08:28 -0700

Running multiple mysql instances on one machine

Installation instructions: A mysql program file, a configuration file, running multiple mysql instances (each with its own distinct data directory).For the convenience of the test, only two examples are used in this experiment. MySQL program installation directory: /usr/local/mysql_5.6.38 Data directories for MySQL i ...

Posted by mrinfin1ty on Thu, 16 Jul 2020 09:07:05 -0700

Using Shell script to automatically backup MySQL database

Purpose: The 192.168.100.20 server backs up the MySQL database on the 192.168.100.10 server. 1. Configure MySQL server 1) 100.10 MySQL server log in to MYSQL to create two databases [root@centos01 ~]# mysql -uroot -ppwd@123 mysql> create database liyanxin; mysql> create database wangzhaojun; 2) liyanxin database creates tables and write ...

Posted by maliskoleather on Mon, 01 Jun 2020 08:09:44 -0700

Regular backup of linux mysql

The project needs to back up the database regularly. Here are your own operation notes 1. Check the disk space    # df -h Filesystem Size Used Avail Use% Mounted on /dev/vda1 40G 3.6G 34G 10% / tmpfs 16G 0 16G 0% /dev/shm This is my current situation of linux server. I don't know why it's like this (I'm ...

Posted by joozt on Sat, 02 May 2020 07:56:12 -0700

Java Web database backup and restore

1. Set the relevant database connection statements in the jdbc.properties file jdbc_url=jdbc:mysql://ip address: port / database name? Characterencoding = utf8 & zerodatetimebehavior = round jdbc_username=User name jdbc_password=User password 2. Read the modified properties file in applicationContext.xml <context:pr ...

Posted by oscar2 on Fri, 03 Apr 2020 01:52:07 -0700

Linux centos install mysql

Installation steps #decompression tar -zxvf mysql-5.6.33-linux-glibc2.5-x86_64.tar.gz #Copy the extracted mysql directory cp -r mysql-5.6.33-linux-glibc2.5-x86_64 /usr/local/mysql #Add user group groupadd mysql #Add user mysql to user group mysql useradd -g mysql mysql #install cd /usr/local/mysql/ mkdir ./data/mysql chown -R ...

Posted by shock on Fri, 20 Mar 2020 11:21:03 -0700

mysql database technology 1 - Basic addition, deletion and alteration sql statements

1. Classification of database languages DDL: Database Definition Language Used to create, modify, and delete data structures within a database, such as: 1: Create and delete databases (CREATE DATABASE || DROP DATABASE); 2: Create, modify, rename, delete tables (CREATE TABLE | ALTER TABLE | RENAME TABLE | DROP TABLE, TRUNCATE TABLE); 3: Create a ...

Posted by timmerk on Tue, 11 Feb 2020 20:46:07 -0800

MySQL transaction, permission, index and specification

One transaction Core: success or failureAtomicity Both succeed or fail Consistency The data integrity before and after the transaction should be consistent, 1000 Principle: ACID1. Atomicity Either they succeed or they fail; 2. Consistency Data integrity before and after transactions should be consiste ...

Posted by nawal on Tue, 11 Feb 2020 02:41:44 -0800

MySQL Database - Functions, Transactions, Indexes, Rights Management and Backup, Specifications for Databases

1. MySQL functions Official website: https://dev.mysql.com/doc/refman/5.7/en/func-op-summary-ref.html 1.1. Common Functions -- ==================== Common Functions ============================= -- Mathematical operations SELECT ABS(-8) -- absolute value SELECT CEILING(9.4) -- ceil SELECT FLOOR(9. ...

Posted by undecided name 01 on Wed, 05 Feb 2020 20:01:33 -0800

Copy / copy database without mysqldump

Without local access to the server, is there any way to copy / clone MySQL database (including content and excluding content) to another database without using mysqldump? I am currently using MySQL 4.0. #1 building If you're using Linux, you can use the following bash script: (it may need some other code cleansing capabilities, but it ...

Posted by kel on Fri, 31 Jan 2020 03:16:41 -0800