Hello @ ALL
does anyone found some useful mysql-settings for my.cnf to hold 5 small-mysql-databases
at 1GB Ram?
############
set-variable=max_connections=1000
key_buffer=128M
table_cache=256M
sort_buffer=15M
############
that's ok for a 2GB Engine? all databases are not more than 5MB
Thanks for Help
Tom
I am wondering what you need to tweak for five small databases, AFAIK SME Server can serve them without problems. For optimizing MySQL there is not a general recipe, and lots of bigger more demanding databases are served using MySQL.
The total content on the disk does not really reflect the size it will take up in memory as indexes etc. also take up space.
One of the main important things of optimizing databases is designing your tables right and setting the proper indexes with the proper size to speed up searching when querying the database. Also designing queries with some care to properly use the indexes would make a huge difference.
Did you already read the manual for MySQL? Are the databases your own design or are they part of a software package.
Your best bet is to get the required settings and information on a more specific mysql forum such as newsgroups, comp.databases.mysql is a good one. Once you have the required settings we can help you set them up the SME Server way in the configuration files as they are generated using templates and internal database settings.
Another question: Do you really need 1000 simultaneous connections? Perhaps you can elaborate a little bit more on the situations you will be using your database.
If you really need the 1000 connections you are way better of getting a dedicated MySQL server and someone who knows how to do this to optimize your MySQL database server instead of SME Server.
If you want to know all the configuration parameters your MySQL server is currently using you can use this command:
mysqladmin variables