简体   繁体   English

将我的网站连接到云数据库

[英]Connecting My Website to a Cloud DataBase

Please help me out, I have a form-page in my website, i need to save that form details to database.请帮帮我,我的网站上有一个表单页面,我需要将该表单详细信息保存到数据库中。 and planning to host DB in a cloud.并计划在云中托管数据库。 So Seniors If any one got any Ideas, Suggestions, Code, Links which helps to Connect MY-WEB PAGE and CLOUD DB .所以前辈如果有任何想法、建议、代码、链接有助于连接 MY-WEB PAGE 和 CLOUD DB 。 . . . . Please DO POST... Thank YOU ALL请发帖……谢谢大家

To connect to a database, you just need a database driver (client) to communicate with your database.要连接到数据库,您只需要一个数据库驱动程序(客户端)来与您的数据库进行通信。 If you want to host this in the 'cloud', you will need to do the following:如果您想在“云”中托管它,您需要执行以下操作:

  1. decide on the type of database (sql/nosql)决定数据库的类型(sql/nosql)
  2. decide whether you are going to host it in the cloud (rackspace, amazon, etc), or use a hosted service ( https://cloud.google.com/sql/ , object rocket, etc, etc)决定是将它托管在云中(rackspace、amazon 等),还是使用托管服务( https://cloud.google.com/sql/、object Rocket 等)
  3. then connect to it via your db driver然后通过您的数据库驱动程序连接到它

It usually makes most sense to locate your db & web pages close together (same hosting provider) or at least the same country of hosting.将您的数据库和网页放在一起(同一托管服务提供商)或至少是同一托管国家/地区通常最有意义。

Sorry this is so broad, your question is too broad to do much more than provide pointers where to start.对不起,这太宽泛了,你的问题太广泛了,除了提供从哪里开始的指示之外,不能做更多的事情。

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

相关问题 创建我的第一个移动应用程序并将其连接到数据库 - Creating my first Mobile App and connecting it to a database 从我的网站1访问我的其他数据库到网站2 - Accessing my other database from my website 1 to my website 2 从我的网站查询第三方网站的数据库 - Querying a 3rd party website's database from my website 连接nodejs和云mqtt - Connecting nodejs and cloud mqtt 无法连接到我的Firebase数据库-Node&Express - Having trouble connecting to my Firebase database - Node & Express Mocha测试成功连接到我的数据库,但未保存实例 - Mocha test successfully connecting to my database but not saving instances 将我的React应用程序连接到PHP服务器上的MySQL数据库 - Connecting my React App to a MySQL Database on a PHP Server “数据库名称必须是字符串”与我的连接字符串连接时出错 - 'database name must be a string' Error when connecting with my Connection String 通过 VScode 上的 php 将数据库连接到我的 html 文件 - Connecting database to my html file via php on VScode 我尝试将我的后端连接到数据库(mongodb)。 但是,它显示了这个错误 - I tried connecting my backend to database(mongodb). But, It shows this error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM