Skip to main content
ivanucherdjiev
Associate II
October 31, 2015
Question

stm32f4 Mysql connection

Posted on October 31, 2015 at 12:07

Greetings,

Currently I am working on a project in which MySQL connection is requerd. I use STM32F4Discovery and some additional boards and made TCP/IP stack working with LwIP librarys, but I don't know how to make a TCP connection directly to MySQL server. Currently I am able to connect TCP/UDP server and communicate with it, but can not connect to MySQL database. Can someone help me , give me some information about how to establish the connection. Thank you very much!

Best regards,

Ivan Ucherdzhiev

    This topic has been closed for replies.

    2 replies

    bobert
    Associate II
    November 2, 2015
    Posted on November 02, 2015 at 06:07

    This technically doesn't have anything to do with anything STM32 specific.  MySQL defines a client/server protocol that has to be used.  There was a MySQL client stack for lwIP on ARM's mbed stuff.  That may be a place to start.

    ivanucherdjiev
    Associate II
    November 5, 2015
    Posted on November 05, 2015 at 09:30

    Hello again,

    I made a MYSQL client library for STM32F4. I tested it and its working, I am able directly to connect STM32F4Discovery board to MySQL database , upload data in Tables from STM32F4Discovery, also download data from tables to

    STM32F4Discovery board

    .

    Best regards!