Creating new MySQL users with PHP?
Posted: Tue Oct 11, 2005 12:27 am
I'm familiar with creating new databases with PHP, but can I create new users as well?
I scoped out php.net but couldn't find anything relevant. Google wasn't much help either
I know it's possible because all the popular web hosting backpanels let you do it (cpanel, plesk..). The question is what are they doing it with? Are they using a web language or executing batch files? What would be the simplest way to dynamically create new MySQL user accounts?
Thanks in advance.
- John
I scoped out php.net but couldn't find anything relevant. Google wasn't much help either
I know it's possible because all the popular web hosting backpanels let you do it (cpanel, plesk..). The question is what are they doing it with? Are they using a web language or executing batch files? What would be the simplest way to dynamically create new MySQL user accounts?
Thanks in advance.
- John