Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jdbc:mysql://address=(type=master)(protocol=tcp)(host=IP1)(port=3306)(user=root)(password=root)/dbname1?failOverReadOnly=false,address=(type=master)(protocol=tcp)(host=IP2)(port=3306)(user=test)(password=test)/dbname2?failOverReadOnly=false
- jdbc:mysql://address=(type=master)(protocol=tcp)(host=IP1)(port=3306)(user=root)(password=root)(dbname=dbname1)?failOverReadOnly=false,address=(type=master)(protocol=tcp)(host=IP2)(port=3306)(user=test)(password=test)(dbname=dbname2)?failOverReadOnly=false
- 2017-02-21 11:37:40.724] log4j - 3060 ERROR [main] --- o.a.t.j.p.ConnectionPool: Unable to create initial connections of pool.
- java.sql.SQLException: The connection property 'failOverReadOnly' only accepts values of the form: 'true', 'false', 'yes' or 'no'. The value 'false,address=(type=master)(protocol=tcp)(host=localhost)(port=3306)(user=test)(password=test)/dbname2?failOverReadOnly=false' is not in this set.
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:964)
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:897)
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:886)
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:860)
- jdbc:mysql://address=(key1=value)[(key2=value)]...[,address=(key3=value)[(key4=value)]...]...[/[database]]»
- [?propertyName1=propertyValue1[&propertyName2=propertyValue2]...]
Add Comment
Please, Sign In to add comment