[mysqld] server-id=2 master-host=192.168.0.205 master-user=slave master-passWord=123456 |
/opt/mysql/share/mysql/mysql start /opt/mysql/bin/mysql -u root -p mysql>load data from master; |
mysql>create database sampdb; mysql>create table new (name char(20),phone char(20)); mysql>insert into new (’abc,’0532555555’); |
/opt/mysql/bin/mysql -u root -p mysql>show database; mysql sampdb test mysql>use sampdb; mysql>show tables; new |
欢迎光临 DIY编程器网 (http://diybcq.com/) | Powered by Discuz! X3.2 |