有关mySQL数据库的查询 [英] Query regarding mySQL database

查看:114
本文介绍了有关mySQL数据库的查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Azure SQL数据库记录来自arduino的数据.我对SQL相当陌生,我正在使用azure将数据记录到在azure上创建的mysql数据库中.我已经创建了网站,服务器和空白数据库.按照此链接:https://docs.microsoft.com/en-us/azure/mysql/connect-php

I am using Azure SQL Database to log data from arduino. I am fairly new to SQL and i am using azure to log data into mysql database created on azure. I have created the website, server and a blank database. As per this link : https://docs.microsoft.com/en-us/azure/mysql/connect-php

我已经创建了所有这些.php文件,并将它们上传到网站的根目录,即使使用空白数据库,它也应该记录数据,对吗?因为如果我没记错的话,这些将创建记录数据所需的表?

I have created all these .php files and uploaded them to the root directory of the website and it should log data even with a blank database, right? because if i am not wrong these will create the tables required for logging data?

我还应该去空白数据库还是Adventurework示例?

Also should I go for a blank database or Adventurework Sample?

推荐答案

您好Pranjal,

Hi Pranjal,

以下教程中详细介绍的.php文件旨在从您的本地主机运行,可能是从本地便携式计算机/工作站或已安装PHP运行时的Azure VM运行.本教程的编写方式不会嵌入.php. 在一个PHP网站.这并不是说无法做到. .php示例将通过笔记本电脑/工作站从Internet上的PHP运行时环境手动运行.此外,您需要设置防火墙规则以允许 来自您尝试连接的IP地址的流量.

The .php files detailed in the below tutorial are intended to be run from your localhost, likely from an on-premise laptop/workstation or from an Azure VM that has the PHP runtime installed. The tutorial is not written in such a way that the .php is embedded in a  PHP website. This is not saying that is cannot be done. The .php examples are to be run manually from a PHP runtime environment from your laptop/workstation, over an internet connection. Additionally, you will need to set a firewall rule to allow traffic from the IP address your are attempting to connect from.

Azure MySQL数据库:使用PHP连接和查询数据

如果您还有其他问题,请告诉我们.

Please let us know if you have additional questions.

此致

Mike

Mike


这篇关于有关mySQL数据库的查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆