2017-07-13 13 views
1

私は、アマゾンRDS上でMySQLサーバに接続しようとすると、次のコードを使用しています:ダート - SqlJocky - クラスのSHA1」を解決できません

var pool = new ConnectionPool(
     host: "xxxx.rds.amazonaws.com", 
     port: 3306, 
     user: "root", 
     password: "123456", 
     db: "crm", 
     max: 5); 
    try { 
    var results = await pool.query("show tables;"); 
    results.forEach((row) { 
     print(row); 
    }); 
    } catch (exception) { 
    print(exception); 
    } 

私はこれに走った:

2017-07-13 19:14:11.556440: ConnectionPool: Running query: show tables; 
2017-07-13 19:14:11.562390: ConnectionPool: Getting a connection 
2017-07-13 19:14:11.562800: ConnectionPool: Number of in-use connections: 0 
2017-07-13 19:14:11.563133: ConnectionPool: Creating new pooled cnx#0 
2017-07-13 19:14:11.565475: Connection.Lifecycle: Use connection #0 
2017-07-13 19:14:11.566736: Connection: opening connection to xxxx.rds.amazonaws.com:3306/portea_crm 
2017-07-13 19:14:11.653693: BufferedSocket: WRITE data 
2017-07-13 19:14:11.689824: BufferedSocket: READ data 
2017-07-13 19:14:11.689943: BufferedSocket: READ data: no buffer 
2017-07-13 19:14:11.690250: Connection: readPacket readyForHeader=true 
2017-07-13 19:14:11.690613: BufferedSocket: readBuffer, length=4 
2017-07-13 19:14:11.690815: BufferedSocket: readBuffer, data already ready 
2017-07-13 19:14:11.693935: BufferedSocket: read 4 bytes 
2017-07-13 19:14:11.694517: Connection: about to read 78 bytes for packet 0 
2017-07-13 19:14:11.694662: Connection: buffer size=78 
2017-07-13 19:14:11.694714: BufferedSocket: readBuffer, length=78 
2017-07-13 19:14:11.694755: BufferedSocket: readBuffer, data already ready 
2017-07-13 19:14:11.694969: BufferedSocket: read 78 bytes 
2017-07-13 19:14:11.702610: Connection: completing with exception: 'package:sqljocky/src/auth/auth_handler.dart': malformed type: line 24 pos 24: cannot resolve class 'SHA1' from '[email protected]' 
     var hasher = new SHA1(); 
        ^

がそれですライブラリ内のSHA1を呼び出すcrypto lib依存関係とは何か?

また、私のSQLjockyバージョンは0.6.1です。私はパブサイトで0.14.1を見ました。なぜ更新できないのですか?

+0

を解決します。 –

答えて

0

最後に、

私はSqljockyでRPCを使用しています。

これらの暗号化パッケージには、異なるバージョンの暗号化パッケージがあります。

sqljockyが古い暗号のlibを使用していますので、それはだかなり確信して、

dependencies: 
    rpc: "^0.5.7+1" 
    sqljocky: "^0.14.1" 
    crypto: '>=0.9.0 <0.10.0' 

dependency_overrides: 
    crypto: '>=0.9.0 <0.10.0' 
関連する問題