从C#程序我已经连接到mysql数据库如何使用单引号字符指定密码,获取下一个错误
Format of the initialization string does not conform to specification
starting at index
对于这个连接字符串
Server = srv; Database = db; User Id = user; Password = 'ktrnhjyyst;
感谢
您需要引用包含受限字符的令牌:
var cn = "Server=srv;Database=db;User Id=user;Password="'ktrnhjyyst;"";