We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 287b541 commit d881bbfCopy full SHA for d881bbf
src/main/java/applications/Application2.java
@@ -80,7 +80,8 @@ public static void main(String[] args) throws SQLException, InterruptedException
80
commandSlave = connectionSlave.createStatement();
81
82
//Set the master (S1) configuration in the slave (S2)
83
- commandSlave.execute("CHANGE MASTER TO MASTER_HOST='localhost', MASTER_PORT=" + master_port + ", MASTER_USER='" + username + "';");
+ commandSlave.execute("CHANGE MASTER TO MASTER_HOST='localhost', MASTER_PORT=" + master_port +
84
+ ", MASTER_USER='" + username + "';");
85
86
//Start replication in the slave (S2)
87
commandSlave.execute("START SLAVE;");
@@ -137,7 +138,7 @@ private static void testReplication() throws SQLException, InterruptedException
137
138
try {
139
//Check that the table exists in the slave (S2)
140
executeQuery(commandSlave, "DESCRIBE " + USER_TABLE + ";", Kind.SLAVE);
- }catch(Exception e) {
141
+ }catch(Exception e) {
142
System.err.println(e.getMessage());
143
}
144
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments