我最近学习了node.js,我很高兴把perl脚本重写成非阻塞脚本。目前,我正在编写一个脚本,用于与某些主机连接并提取一些数据。我正在从数据库中提取连接数据,并希望一次将它限制为x连接(可能是50个),当一个连接完成时,新的连接就会启动。
下面是我正在玩的代码:
var net = require('net');
var mysql = require('mysql');
var mysql_conn = mysql.createConnection({
//connection info...
});
var connect_hash ={};
我正在考虑使用亚马逊服务(PHP + mySQL)运行托管服务。我喜欢做的是有一个网站,有人注册,支付PayPal,并返回到网站,他们将获得一个自动化的信息到他们的mySQL帐户。因此,此mySQL帐户将仅供他们使用。他们可以创建表格,等等。
以下是一些问题:
1) Is there a way to create a new mySQL account and table using a script? (PHP?)
2) Is there any open-source scripts out there that already does this that I can take apa