Responsibilities of the database administrator
Startup and shutdown of the server
User Account Maintenance
Log file Maintenance
Backup and copy of the database
Optimization of the server
Software updates for database management systems
Security of
Mysql master-slave replication technology (test) bitsCN.com
Mysql master-slave replication technology (test)
Start configuration:
Step 1: Create a replication account
Each slave uses a standard MySQL User name and password to connect to the master.
PHP advanced mysql courseware 12th page. Responsibilities of database administrators server startup and shutdown user accounts maintenance log files maintenance database backup and copy server optimization database management system software updates
Click the Ubuntu system gt; System Management gt; the new software package manager searches for the jdkmysql keyword, and select the software source to be installed from the search list: configuration ~. Bashrc
Click Ubuntu system = gt; System
Assume that the IP addresses of the two MySql instances are:MySql-Master 192.168.0.1MySql-Slave 192.168.0.21. Configure MySql-Master~ # Vi/etc/mysql/my.cnServer-id = 238 # unique id, usually the last segment of the ipLog_bin
Responsibilities of the database administrator
Startup and shutdown of the server
User Account Maintenance
Log file Maintenance
Backup and copy of the database
Optimization of the server
Software updates for database management systems
Security of
Change mysql password in Centos, centosmysql1. Modify MySQL Logon Settings:
# Vim/etc/my. cnfAdd the following sentence: skip-grant-tables, for example:
[Mysqld] datadir =/var/lib/mysqlsocket =/var/lib/mysql. sock2. Restart mysql
# Service mysqld
The CentOS system Amoeba + MySql Master/Slave read/write splitting configuration is suitable for beginners! ----- For reference only !, Centosamoeba
Start directly:
I. There are three ways to install mysql. Here, there are 2nd ways to install mysql
1. VI/ETC/MY.CNF, add in [mysqld]Skip-grant-tablesFor example:[Mysqld]Skip-grant-tablesDatadir=/var/lib/mysqlSocket=/var/lib/mysql/mysql.sock2. Restart MySQLService MySQL Restart3. Login with user without passwordMysql-uroot-p (Direct click to enter,
The realization of MySQL dual-machine hot standbyOriginal: http://www.zjian.me/web/php/mysql%E5%8F%8C%E6%9C%BA%E7%83%AD%E5%A4%87%E7%9A%84%E5%AE%9E%E7%8E%B0/The MySQL database does not have a mechanism for incremental backups, which is a big problem
1. Installing MySQL 8 on Centos 7rpm -qa |grep -i mysql //看自己系统有没有装mysqlwget https://dev.mysql.com/get/mysql80-community-release-e17-1.noarch.rpmrpm -ivh mysql80-community-release-e17-1.noarch.rpmyum install mysql-serverCheck that the MySQL
If you use the MySQL database to forget the root account password, you can adjust the configuration file, skip the password way to log the database,In the database to modify the account password, the general default account is root1. Edit MySQL
Re-install MySQL, because do not know the root password before reloading, using the password after the reload to connect MySQL data, the general report ERROR 1130:host ' localhost ' not allowed to connect to this M YsqlServer, unable to connect to
Build MySQL master-slave replication installation Environment:Two CentOS 7 virtual machinesFirst, set up time synchronization environment, on the master node to build time synchronization Server master server Settings 1, install NTP[[email protected]
The test environment is as follows:master:10.0.0.26slave01:10.0.0.27slave02:10.0.0.28One or three machines are installed mysql-server5.7 $ sudo apt-get update$ sudo apt-get install-y mysql-serverSecond, configure master-slave synchronization 1.
The user root of host =% already exists in MySQL database, and the connection is prompt 1130.Use Navicat to open the user table >>>> directly modify the account root password (see unencrypted content) in the table >>>> perform the flush privileges;>>
2-16 MySQL master-slave replication 1. Deploy MySQL master-slave sync Environment: MySQL version consistent, all 5.7.18Master XUEGOD4 IP 192.168.10.34 Database Password yourpasswdSlave xuegod5 IP 192.168.10.35 database Password yourpasswd1.1
MySQL master-slave configuration for read-write separationLarge web site in order to soft solution a large number of concurrent access, in addition to the site to achieve distributed load balancing, far from enough. To the data service layer, the
This morning visit webpage, prompt error, database connection not on, then restart MySQL service, promptMySQL Manager or server PID file could not being found!Starting mysql.manager of Pid-file quit without updating fiGood depressed, and then look
Operating system Centos 6.4 x86_64Software version MySQL 5.5.37One master-from replication (asynchronous)When the master-slave server has just completed MySQL installation, no dataPrimary server 192.168.200.127From server 192.168.200.1281 time
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.