You should be able to do it in cpanel. The privilleges are: ALL, ALTER, CREATE TEMPORARY TABLES, CREATE, DELETE, DROP, SELECT, INSERT, UPDATE, REFERENCES, INDEX and LOCK TABLES.
I do not know how to edit permissions via php, but in your cpanel you should be able to somewhere or another.