Anybody know how to do that? Almost every host will not let you create mysql databases with a script. They make you use a control panel, like Cpanel. But has anyone figured out how to control Cpanel with a PHP script to create databases and db users?
If you log into cpanel and get a unix prompt. Simple use the mysql client via the shell and once logged into your db server, do a ...
. /path/to/your/mysql/script.sql
And that should execute the script.
Andy
I want to create a user account, and also load software into their account (which means creating a db and populating it with tables).
Anyone have any sample code on how to do this, or can point me in the right direction?
Thanks in advance!