Manually Adding Data to the Primary Database
- Log in to the primary database.
1/usr/local/mysql/bin/mysql -uroot -p123456 -S /data/mysql/run/mysql.sock
- Create the test database.
show databases; create database test;
- Create a student table in the test database.
use test create table student(name char(100),age int); show tables;
- Insert one data record into the student table.
insert into student(name,age) values('David',18); - Query data in the student table.
select * from student;
Parent topic: Verifying Primary-Secondary Replication