MySQL — How much memory do I need?
Upload your configuration to see how much memory MySQL needs. This tool calculates the theoretical peak memory usage which does not necessarily reflect real life usage of your database. Read this for more in-depth understanding of how MySQL uses memory. All default values are for MySQL 5.1.