在WHM / cPanel服务器上从PHP编写数据库 [英] Create database programatically from PHP on WHM/cPanel server

查看:114
本文介绍了在WHM / cPanel服务器上从PHP编写数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否可以在WHM / cPanel服务器上创建一个新的数据库和用户。

解决方案



'mysql_create_db'函数在cPanel服务器上无法正常工作。

p>



http:// USER:PASS @ HOST:2082 /frontend/SKIN/sql/adddb.html?db=DB



还有一个现成的脚本可以在这里使用< a href =http://www.zubrag.com/scripts/cpanel-database-creator.php =nofollow noreferrer> http://www.zubrag.com/scripts/cpanel-database-creator.php


I was wondering whether it is possible to create a new database and user, from PHP, on an WHM/cPanel server.

解决方案

Ok, this is the thing.

'mysql_create_db' function does not work properly on cPanel servers.

There is a solution to this though, by using the proprietary cPanel function like so

http://USER:PASS@HOST:2082/frontend/SKIN/sql/adddb.html?db=DB

There is also a ready-made script that can be used here http://www.zubrag.com/scripts/cpanel-database-creator.php

这篇关于在WHM / cPanel服务器上从PHP编写数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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