Bhavin Kalal
Bhavin Kalal

Reputation: 214

Creating database and setting privilege in MySql dynamically

Is there a way to create a database on the online server dynamically where you can create the user and set the privilege from there it self. i tried creating a database on my cpannel dynamically using php but it shows a error message of access denied. It only shows up a option to create the database statically and allocate the rights to a particular user. this thing is to be done in PHP.

Upvotes: 2

Views: 259

Answers (2)

Er Jagdish Patel
Er Jagdish Patel

Reputation: 193

Please check out this solution for creating Database in CPANEL.

https://stackoverflow.com/a/76339678/3775083

Upvotes: 0

kp85
kp85

Reputation: 441

You have to use MySql commands in query in PHP for creating the database and setting the privileges.

Upvotes: 2

Related Questions