CGI-Application-Framework
view release on metacpan or search on metacpan
lib/CGI/Application/Framework.pm view on Meta::CPAN
# mysql < caf_example.mysql
This will create the "example" database and one table with a
few pre-populated rows, "users", and a bunch of other empty tables.
You will want the web application to be able to access the "example"
database as a non-root user, so you need to grant access to the
database. Do the following
# mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 28 to server version: 4.0.21-log
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> GRANT ALL PRIVILEGES ON example.* TO
-> 'some_username'@'localhost' IDENTIFIED BY 'a_password';
Obviously, pick C<"some_username"> and C<"a_password"> that is appropriate
to your situation. If you are doing this for test purposes then
perhaps you can just use the username of your regular Unix user
( run in 0.889 second using v1.01-cache-2.11-cpan-87723dcf8b7 )