C # mysql database link is abnormal

Adjust mysql link encounter

System.TypeInitializationException:“The type initializer for 'MySql.Data.MySqlClient.Replication.ReplicationManager' threw an exception.”

A series of errors were reported, and I
finally found that I ignored the specific errors caused by the configuration and the pointed file was Configuration file
Abnormal prompt
adjusted as follows . There are two options 1) comment out the system.data node in the configuration file, and note 2 in the screenshot 2) remove the configuration file The program does not use configuration)
(the average person will not make this mistake as a warning (the main reason is that the configuration file remains caused by the configuration of the multi-link database))

Published 9 original articles · received 0 · views 6123

Guess you like

Origin blog.csdn.net/gx8201/article/details/103990954