Error while connecting MySQL DB

  • Error while connecting MySQL DB

    Posted by DSC Communities on August 26, 2019 at 8:55 am
    • ganesh kumar

      Member

      August 26, 2019 at 8:55 AM

      Hi TeamĀ 

      am getting below error while trying to connect mysql database .. please help me in this why am getiing this error..

      ——————————
      ganesh kumar
      Business Analyst
      9500990994
      ——————————

    • Martin Frisch

      Member

      August 27, 2019 at 1:27 AM

      Hi,

      what is the version of your ODBC Driver. I think at must be at least 5.1.Ā 

      Best regards,
      Martin

      ——————————
      Martin Frisch
      BI Developer
      Trützschler GmbH & Co. KG
      ——————————
      ——————————————-

    • ganesh kumar

      Member

      August 27, 2019 at 1:48 AM

      Hi

      i have installedĀ  “mysql-connector-net-8.0.17”?

      ——————————
      ganesh kumar
      Business Analyst
      9500990994
      ——————————
      ——————————————-

    • Hasham Niaz

      Member

      August 27, 2019 at 9:39 PM

      Hi !

      Please try setting up with my-SQL ODBC driver & see if its able to get you through.

      Regards,

      ——————————
      Hasham Bin Niaz
      Director Data & Analytics
      Karachi, Pakistan
      ——————————
      ——————————————-

    • Mark Toddy

      Member

      June 21, 2021 at 1:53 AM

      In some of the ways, spacing and the order of parameters in the MySql connection string does matters. So, stick to the standard format:

      MysqlConn.ConnectionString = "Server=localhost;Port=1234;Database=My_Mysql_Database;Uid=root;Pwd=root;"

      If the above connection string fails, try update your c# mysql connection string as shown below (without port variable as well):

      MysqlConn.ConnectionString = "Server=localhost;Database=My_Mysql_Database;Uid=root;Pwd=root;"

      Or, sometime the problem could be on your windows firewall, make sure your server allow access to all port associated with your mysql database.

      ——————————
      Mark Toddy
      Developer
      ——————————
      ——————————————-

    DSC Communities replied 6 years, 7 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

The discussion ‘Error while connecting MySQL DB’ is closed to new replies.

Start of Discussion
0 of 0 replies June 2018
Now

Welcome to our new site!

Here you will find a wealth of information created for peopleĀ  that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!