Configuring MySQL

This section describes how to create a new database and set up a MySQL user account that can access it. You could use an existing database and user, of course, but I recommend that you set up new ones specifically for trying out the applications developed in this book. You’ll find it easier to keep things straight if they’re not mixed up with a database and account you’re already using for other purposes. Also, if while you’re learning you accidentally expose the username and password used for the example database, that won’t put your other databases at risk.

For example purposes, I’m going to assume that you’re working on the host www.snake.net and that your MySQL server and Apache server are both running locally on that same ...

Get MySQL and Perl for the Web now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.