Guest User

Untitled

a guest
Feb 2nd, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. 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
  2.  
  3. 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
  4.  
  5. 2017-02-21 11:37:40.724] log4j - 3060 ERROR [main] --- o.a.t.j.p.ConnectionPool: Unable to create initial connections of pool.
  6. 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.
  7. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:964)
  8. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:897)
  9. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:886)
  10. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:860)
  11.  
  12. jdbc:mysql://address=(key1=value)[(key2=value)]...[,address=(key3=value)[(key4=value)]...]...[/[database]]»
  13. [?propertyName1=propertyValue1[&propertyName2=propertyValue2]...]
Add Comment
Please, Sign In to add comment