在WHM / cPanel服务器上从PHP编写数据库 [英] Create database programatically from PHP on WHM/cPanel server
问题描述
我想知道是否可以在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屋!