MySQL forget root password solution

Now the mysql database we use is divided into two versions, one is mysql and the other is mariadb. There are some differences between the two versions of the solution, which I will explain below. First step First, we need to turn on my.cnf vim /etc/my.cnf Add skip grant tables under [mysqld], then save and exit ...

Posted by rejoice on Sat, 04 Apr 2020 00:08:14 +0200

Redis - using Gearmand as mysql cache server

Redis - using Gearmand as mysql cache server Article directory Redis - using Gearmand as mysql cache server 1. What is gearland? 2. Deployment process 3. test 1. What is gearland? Gearmand is a machine used to delegate work to other machines, distributed calls are more suitable for doing a c ...

Posted by onedumbcoder on Fri, 13 Mar 2020 07:53:45 +0100

3-Use databases in Django

Database Settings In the previous section, you learned how to create a Django project, create a web application in a Django project, and reference the URL of a web application in the URL of a Django main program.Here's how to use databases in Django.To use a database in Django, you first need to understand the settings for the database connecti ...

Posted by Sinikka on Sun, 16 Feb 2020 21:48:32 +0100

Query MySQL data

1. Prepare a data sheet called fruits MariaDB [vincen]> CREATE TABLE fruits #Create a data table -> ( -> f_id char(10) NOT NULL, -> s_id INT NOT NULL, -> f_name char(255) NOT NULL, -> f_price decimal(8,2) NOT NULL, -> PRIMARY KEY(f_id) -> ); Query OK, 0 ...

Posted by esostigma on Wed, 01 Jan 2020 21:25:19 +0100

mysql common instructions under linux operating system

1. Access to MySQL database It is completed by inputting mysql-uroot-p instruction, where uroot is the user name, and the option of inputting password will be displayed after execution [it@VM_0_12_centos ~]$ mysql -uroot -p Enter password: 2. Display of existing database Type show databases; on the command line to display the ...

Posted by raj86 on Sun, 29 Dec 2019 21:57:32 +0100

MMM high availability cluster of MySQL database

MMM Cluster Architecture Overview Mmm (Master Master replication manager Mysql) is a set of flexible script program based on perl, which is used to monitor and migrate mysql replication, and manage the configuration of Mysql master replication (only one node is writable at the same time). MMM high availability architecture description Mmm M ...

Posted by synergypoint on Fri, 13 Dec 2019 17:12:51 +0100

MySQL Cluster highly available

Catalog MySQL highly available Galera Cluster Galera Cluster Galera Cluster features Disadvantages of Galera Cluster Galera Cluster working process Official document of Galera Cluster Galera Cluster consists of two components WSREP replication implementation PXC princ ...

Posted by elibizif on Tue, 03 Dec 2019 16:23:31 +0100

Tencent Cloud Server Centos7.7 Build Lnmp

Query system information cat /etc/redhat-release // Return ## CentOS Linux release 7.7.1908 (Core) yum Mirror Switch to NetEase Download new sources and backup local sources cd /etc/yum.repos.d/ wget http://mirrors.163.com/.help/CentOS7-Base-163.repo mv CentOS-Base.repo CentOS-Base.repo.bak mv CentOS6-Base-163.repo CentOS-Base.repo yum source u ...

Posted by William on Fri, 29 Nov 2019 09:10:54 +0100

MMM High Availability Architecture

MMM (Master-Master replication manager for MySQL) is a script that supports dual primary failover and dual primary day-to-day management.MMM is developed in Perl and is mainly used to monitor and manage MySQL Master-Master (dual master) replication, which can be referred to as mysql master replication manager.Although called dual master repl ...

Posted by mrcaraco on Mon, 25 Nov 2019 22:51:04 +0100

Multi instance implementation of mariadb based on binary installation

Multi instance implementation of mariadb based on binary installation   1. mariadb version: 10.2.23   2. shell script for binary installation of mariadb #!/bin/bash id mysql &>/dev/null if [ `echo $?` -ne 0 ];then userdel -r mysql &>/dev/null useradd -r -u 336 -s /sbin/nologin -d /data/mysql mysql &amp ...

Posted by benkillin on Wed, 20 Nov 2019 17:31:29 +0100