dpvmtdu364462 2014-11-13 12:38
浏览 28

关于外部树莓派数据库的问题

Okay so I need to have a server with a databse for a smartphone applications I'm working on, and there are a few requirements.

-SQL database

-Returns queries with JSON

So i had this old Raspberry Pi laying around and i wanted to set it up for it. But theres something im uncertain of, and google haven't helped me yet.

I planned on use SQLite on the Pi, and wanted to interact with it in PHP. Then use the PHP to convert into JSON, which would then be retrieved by the smartphone. The thing is i don't know what service i can use on the PI to make this .PHP file able to be found from another device

  • 写回答

1条回答 默认 最新

  • drg17404 2014-11-15 01:08
    关注

    You can install nodejs by running:

    sudo apt-get install nodejs nodejs-legacy npm

    For SQL database you can run

    sudo apt-get install mariadb-server mariadb-client

    Install your nodejs mysql module by:

    sudo npm install -g node-mysql
    

    That should get you started.

    评论

报告相同问题?

悬赏问题

  • ¥20 我要一个分身加定位两个功能的安卓app
  • ¥15 基于FOC驱动器,如何实现卡丁车下坡无阻力的遛坡的效果
  • ¥15 IAR程序莫名变量多重定义
  • ¥15 (标签-UDP|关键词-client)
  • ¥15 关于库卡officelite无法与虚拟机通讯的问题
  • ¥15 目标检测项目无法读取视频
  • ¥15 GEO datasets中基因芯片数据仅仅提供了normalized signal如何进行差异分析
  • ¥100 求采集电商背景音乐的方法
  • ¥15 数学建模竞赛求指导帮助
  • ¥15 STM32控制MAX7219问题求解答