1

JDBC ドライバーを使用して MySQL データベースに接続するにはどうすればよいですか? Percobol ソフトウェアを使用した Cobol の場合。

    DO-CONNECT.
     STRING "jdbc:mysql://gpiw.be/db;"
      DELIMITED BY SIZE
      "user=user_db;"
      DELIMITED BY SIZE
      "password=*********"
      DELIMITED BY SIZE
      INTO JdbcString
     EXEC SQL
      CONNECT
       TO :JdbcString
       DRIVER "com.mysql.jdbc.Driver"
     END-EXEC
    .

どうしたの?

ソース: http://dev.mysql.com/doc/refman/5.0/en/connector-j-reference-configuration-properties.html http://www.easysoft.com/developer/interfaces/odbc/sqlstate_status_return_codes.html #28000

4

1 に答える 1

1

解決策を見つけました:

    DO-CONNECT.
     STRING "jdbc:mysql://***ip****/***database**?"
      DELIMITED BY SIZE
      "user=****username****&"
      DELIMITED BY SIZE
      "password=****password******"
      DELIMITED BY SIZE
      INTO JdbcString
     EXEC SQL
      CONNECT
       TO :JdbcString
       DRIVER "com.mysql.jdbc.Driver"
     END-EXEC
    .
于 2013-02-15T11:44:11.950 に答える