I'm trying to get a custom php script to create a database on my cPanel/WHM ran server. Its will create a database, insert/create the correct Database and its gonna upload files. (basically and install script)
The method above doesnt' work and says access is denied, Even when I've enabled all the permissions or the user, so I'm assuming It would have to be a Root MySQL User? Is there such a thing?PHP Code:$objCon = mysql_connect("localhost","DB USERNAME","PASSWORD");
My programmer wants that to do it, but I know that that is not allowed on many servers including mine because its a security risk.
I'm trying to tell him to try Cluster remote access key and use that, but neither of us know how to implement that into the PHP code to create it.
Would this work? Are there any other alternatives.



LinkBack URL
About LinkBacks
Reply With Quote




