mysql> use backup;
Database changed
mysql> create table user(id int(5),name char(10));
Query OK, 0 rows affected (0.27 sec)
mysql> show tables;
+------------------+
| Tables_in_backup |
+------------------+
| user |
+------------------+
1 row in set (0.00 sec)
2)在从库192.168.1.102上验证
1
2
3
4
5
6
7
8
9
mysql> use backup;
Database changed
mysql> show tables;
+------------------+
| Tables_in_backup |
+------------------+
| user |
+------------------+
1 row in set (0.00 sec)
The stack size specified is too small, Specify at least 228k
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
The stack size specified is too small, Specify at least 228k
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
发现错误
1
The stack size specified is too small, Specify at least 228k
The stack size specified is too small, Specify at least 228k
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
The stack size specified is too small, Specify at least 228k
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
2014-09-03 18:01:17 [INFO] Project Name=Amoeba-MySQL, PID=1086 , starting...
log4j:WARN log4j config load completed from file:/usr/local/amoeba/conf/log4j.xml
2014-09-03 18:01:19,883 INFO context.MysqlRuntimeContext - Amoeba for Mysql current versoin=5.1.45-mysql-amoeba-proxy-3.0.4-BETA
log4j:WARN ip access config load completed from file:/usr/local/amoeba/conf/access_list.conf
2014-09-03 18:01:21,513 INFO net.ServerableConnectionManager - Server listening on 0.0.0.0/0.0.0.0:8066.
OK了,查看下端口
1
2
3
4
5
6
7
8
9
10
11
[iyunv@localhost bin]# netstat -natpl
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 932/sshd
tcp 0 52 192.168.1.100:22 192.168.1.2:62555 ESTABLISHED 965/sshd
tcp 0 0 :::22 :::* LISTEN 932/sshd
tcp 0 0 :::8066 :::* LISTEN 1118/java
tcp 0 0 ::ffff:192.168.1.100:8260 ::ffff:192.168.1.101:3306 ESTABLISHED 1118/java
tcp 0 0 ::ffff:192.168.1.100:8258 ::ffff:192.168.1.101:3306 TIME_WAIT -
tcp 0 0 ::ffff:192.168.1.100:58189 ::ffff:192.168.1.102:3306 TIME_WAIT -
tcp 0 0 ::ffff:192.168.1.100:58191 ::ffff:192.168.1.102:3306 ESTABLISHED 1118/java
mysql> use backup;
Database changed
mysql> show tables;
+------------------+
| Tables_in_backup |
+------------------+
| user |
+------------------+
1 row in set (0.01 sec)