我正在考虑使用亚马逊服务(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
我有一个相当直接的方法来使用SQL复制选择性数据,如下所示:
# Courses
DROP TABLE db_node.courses;
CREATE TABLE db_node.courses LIKE db_prod.course_sis;
INSERT INTO db_node.courses SELECT
*
FROM
db_prod.course_sis
WHERE
db_prod.course_sis.enabled = 1
AND db_prod.course_sis.hidden <> 1;
当我使用相同的数据库在同一台服务器上时,这很容易,