- Quotas: MySQL is not directly supported. you can emulate something using a file system that supports user quotation for each user, setting file ownership for your users and setting a quota for each user at the OS level. note that by default InnoDB uses one table file for all databases, but there is an option to tell it to use the file for the table . however - note that this may affect performance.
- Running multiple instances on the same computer is possible using a different configuration file for each server.
where, at a minimum, you want to change them from user to user:
[mysqld] port=PORT_NUMBER datadir=/home/USER/mysql tmpdir=/home/USER/tmp/mysql
to start the series, run:
mysqld_safe --defaults-file=user_specific_my.cnf
to stop the server, run:
mysqladmin -u root -pROOT_PASSWORD --port=3307 -h 127.0.0.1 shutdown
To connect to the server, the user must use:
mysql --port=USER_PORT -h 127.0.0.1 -pPASSWORD
source share