I've built my app so far using node-mysql. I just set up a securely accessible mysql database using AWS RDS service and have tested an SSL connection successfully with the mysql command line client. I have Amazon's public key .pem file. node-mysql doesn't seem to have an api for the SSL connect option.

到目前为止,我使用node-mysql构建了我的应用程序。我只是使用AWS RDS服务建立一个安全可访问的mysql数据库,并使用mysql命令行客户端成功测试了SSL连接。我有亚马逊的公钥.pem文件。 node-mysql似乎没有SSL连接选项的api。

The only one I've found so far is Node-mysql-libmysqlclient but I got errors trying to connect with it, something about a bindings dependency being null so I'm not sure if I should trust it. Suggestions of which module/api to use? Alternatively, if you know what I need to modify in node-mysql I'd be willing to tinker a bit but it looks like it's using lower level Sockets to connect to MySQL so I'm not sure how hard it would be to get the SSL part added on.

到目前为止,我发现的唯一一个是Node-mysql-libmysqlclient,但是我尝试连接它时遇到错误,关于绑定依赖项为null的事情,所以我不确定我是否应该相信它。建议使用哪个模块/ api?或者,如果你知道我需要在node-mysql中修改什么,我愿意修改一下,但它看起来像是使用较低级别的套接字来连接到MySQL所以我不确定它有多难以获得SSL部分已添加。

3 个解决方案

#1


-3

Use Sequelize! Hands down best ORM around for MariaDB and MySQL. https://github.com/sequelize/sequelize

使用Sequelize!为MariaDB和MySQL提供最好的ORM。 https://github.com/sequelize/sequelize

更多相关文章

  1. ASP.NET GridView 绑定 MySql数据库
  2. javaScript怎么实现双向数据绑定
  3. 使用Directive通过AngularJS使用指令和数据绑定来注入HTML
  4. 使用Object.observe 实现数据绑定
  5. Angularjs指令ng-hide在单元格模板中不对网格数据的更改进行绑定
  6. Jquery中动态添加元素的绑定事件不起作用
  7. 非常简单的js双向绑定框架(一)
  8. AngularJS - 删除绑定以避免内存泄漏
  9. 五十行javascript代码实现简单的双向数据绑定

随机推荐

  1. Android实例剖析笔记(八)
  2. EventBus 和RxLifecycle 一起使用所引发
  3. Android电子书阅读器的设计与实现
  4. 深入解读Linux与Android的相互关系& Andr
  5. 2011.09.09 ——— android 2.2 修改安装
  6. android模拟器大幅优化_android开发者的
  7. Android 使用非阻塞的方式读写串口
  8. 配置android的命令行参数
  9. android开发2:eclipse 开发 Android 应用
  10. RelativeLayout常用属性