How to connect NodeMCU to a MySQL database with PHP | Arduino and IoT Programming Tutorial

Опубликовано: 30 Сентябрь 2026
на канале: Coders Indonesia
23,414
563

How do I connect NodeMCU to a MySQL database? How do I create a server? We can use the PHP programming language as the server language, which will connect MySQL to the NodeMCU. Once the NodeMCU is connected to Wi-Fi and the database, it will periodically send data to be stored in the MySQL database. This is an example of an IoT project using NodeMCU. Why? Because all data is exchanged via the internet (IoT).

Content: Connecting NodeMCU to a Database

0:00 | NodeMCU Database
0:15 | Jingle Coders Indonesia
0:29 | Support Coders Indonesia
1:11 | Condolences
1:43 | Connecting NodeMCU to a Server
2:38 | Creating a MySQL Database
5:32 | Explanation of Database Tables
7:53 | PHP Connection to a MySQL Database
11:27 | Testing the Database Connection
15:43 | NodeMCU Circuit with DHT11
16:14 | Arduino + NodeMCU Programming
20:44 | Testing NodeMCU Connection with Database

Check out my Instagram gallery
  / coders.id  

Join Telegram
https://t.me/codersid

Coders Indonesia Resources Link:
http://bit.ly/codersfile

Heidi SQL:
https://www.heidisql.com/

Shop for cheap electronics in the Tangerang area:
http://tokopedia.com/electrion

#codersid
#codersindonesia
#nodemcu #iot