🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Anyone tried MySQL_Connector?

    Scheduled Pinned Locked Moved PROJECTS
    3 Posts 2 Posters 9.2k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T Offline
      ToniT
      last edited by

      Hi there!

      I'm prototyping an industrial control system on M5Stack, one of the steps is to upload some values to MySQL tables. I would like to do it straight using SQL sentences instead php POST or GETs but I'm unable to compile the libraries <MySQL_Connection.h> and <MySQL_Cursor.h> (several compilation errors not related with my code).

      If I remove M5 libraries or if I tried on another non ESP32 board it compiles ok but not with the M5.

      Have any of you experienced this issues? any way to solve it?

      Thanks in advance!

      Toni

      1 Reply Last reply Reply Quote 0
      • J Offline
        janseta
        last edited by

        As I know, that library was created for Arduino.
        Not all the librarys created for Arduino will work "as they are" in ESP32.

        It could be a good idea to look for "MySQL_Connection library" and "esp8266".
        Sure you can use that library with some little changes...

        And if it work with esp8266, it will work with esp32
        (Esp8266 is older than esp32, so ther is much more information about it...)

        ;-)

        1 Reply Last reply Reply Quote 0
        • T Offline
          ToniT
          last edited by

          Thanks for the tip. Will do!

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post