LoginSignup
1
0

More than 5 years have passed since last update.

Node-RED で MariaDB にアクセスする

Posted at

次の4つのノードを配置して、結ぶ。
"http in" "template" "mysql" "http response"

mysql_jul2401.png

"template"
設定先を、msg.topic とし、テンプレートに SQL 文 (select * from cities) を入れる

mysql_jul2402.png

"mysql"
user,password,database を設定する

mysql_jul2403.png

デプロイしてから、ブラウザーでアクセスした結果

mysql_jul2404.png

MariaDB (MySQL) に、mysql コマンドでアクセスした状況

mysql_jul2405.png

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0