VB.NET: The type initializer for 'MySql.Data.MySqlClient.Replication.ReplicationManager' threw an exception

前端 未结 5 1960
逝去的感伤
逝去的感伤 2021-01-28 07:39

I don\'t know what may be wrong but that\'s what I get when I try to start the program:

The type initializer for MySql.Data.MySqlClient.Replication.ReplicationMana

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-28 08:14

    Are you sure with that connection string?! Try to change it to:

    conn.ConnectionString = "server=127.0.0.1;uid=root;pwd=test;database=snipper;"
    

    Follow this reference:

    http://dev.mysql.com/doc/refman/5.0/en/connector-net-programming-connecting-connection-string.html

提交回复
热议问题