Create a mysql database and set permissions using php
Posted: Mon Jun 30, 2003 12:28 pm
I need to have a php file that creates a mysql database and also sets permissions as follows:
GRANT ALL PRIVILEGES ON `demo` . * TO "coldfusion"@"localhost" WITH GRANT OPTION ;
GRANT ALL PRIVILEGES ON `forum` . * TO "any"@"www" WITH GRANT OPTION ;
as well as
GRANT ALL PRIVILEGES ON `forum` . * TO "any"@"localhost" WITH GRANT OPTION ;
Thanks
GRANT ALL PRIVILEGES ON `demo` . * TO "coldfusion"@"localhost" WITH GRANT OPTION ;
GRANT ALL PRIVILEGES ON `forum` . * TO "any"@"www" WITH GRANT OPTION ;
as well as
GRANT ALL PRIVILEGES ON `forum` . * TO "any"@"localhost" WITH GRANT OPTION ;
Thanks