Maxim,
I posted a very similar question yesterday and got a very helpful reply.
Please see it below:
Databases are essentially just directories. What you do is create a
directory in the users home directory. Then, do this:
ln -s /path/to/home/dbdir /path/to/mysql/data/dir/somedbname
Then
I'm working on a web-hosting site where we'll be giving users a MySQL
database. We wanted to store the database in the user's own directory,
where we'll be enforcing size quotas. So far though, I haven't been able to
find a way to create a database in a directory other than MySQL/data. I've