Link to home
Create AccountLog in
Avatar of save9
save9

asked on

How do I find/set the maximum size of a MYSQL database?

Hi,

I need to find the maximum size allowed for a MYSQL 5 database created using the SQL 'CREATE DATABASE' command.

Then I need to be able to set the maximum size of the database. The database engine is MyISAM.

The reason I need this is so that an end user cannot exceed the maximum size of their database (and thus compromise my server). I've created a database and a MYSQL user with restricted privileges (SELECT, INSERT, UPDATE, DELETE) who is only allowed to access that database.
Avatar of Aamir Saeed
Aamir Saeed
Flag of Pakistan image

try this command in your query browser

 SHOW VARIABLES  

and see what it returns
ASKER CERTIFIED SOLUTION
Avatar of Aamir Saeed
Aamir Saeed
Flag of Pakistan image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Avatar of Guy Hengel [angelIII / a3]
for MyISAM, you do not have a maximum database size apart from the file system limits.
that means, that the limit is per table, ie 1 table can only have the max size of what the file system allows for a single file.

so, check out the file system, and it's specs.
for MyISAM, you do not have a maximum database size apart from the file system limits.
that means, that the limit is per table, ie 1 table can only have the max size of what the file system allows for a single file.