简体   繁体   English

如何结合Node.js设置MySQL

[英]How to setup MySQL in combination with Node.js

I am making a Restful API using Node.js. 我正在使用Node.js制作Restful API。

My project requires using MySQL Database (since there is an existing MySQL DB which needs to be re-designed). 我的项目需要使用MySQL数据库(因为需要重新设计现有的MySQL数据库)。 Therefore, what is the best way to setting up the new MySQL? 因此, 设置新MySQL的最佳方法是什么? Using bundle like LAMP or standalone MySQL? 使用捆绑软件,例如LAMP还是独立的MySQL?

  • LAMP will provide me the traditional administration tool phpMyAdmin (export, import, visualization...). LAMP将为我提供传统的管理工具phpMyAdmin(导出,导入,可视化...)。
  • Installing MySQL alone seems more tidy but there is no "mature" administration tool yet. 单独安装MySQL看起来更整洁,但是还没有“成熟的”管理工具。 I can only find this one https://github.com/simov/express-admin . 我只能找到一个https://github.com/simov/express-admin

Can you please tell me the pros and cons of each way? 您能告诉我每种方式的利弊吗? Thank you in advance. 先感谢您。

I also recommend mySQL with Node.js for getting started. 我还建议将MySQL与Node.js一起入门。 Your best bet for administration tools would be to use a standalone client to tunnel into your database, like MySQL Workbench . 使用管理工具的最佳选择是使用独立客户端来隧道进入数据库,例如MySQL Workbench

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM