C ා connect mysql: fatal error encountered during command execution solution

When a parameterized query is used to pass a reference to mysql, it is always reported
Fatal error encountered during command execution
Make along while, discovery code is no problem, finally Baidu broad net friend
Solution:
Allow User Variables=True in the connection string
server=; port=3306; user=root; password=1111; database=shujukuming; CharSet=gb2312; Allow User Variables=True;”

Read More: