What max_connection should I set for MySQL?

后端 未结 3 1063
北海茫月
北海茫月 2021-02-06 03:17

I am using MySQL 5.1.35 database on Linux Centos.

The Linux server has 2GB RAM with 14GB of disk space.

I have

3条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-06 03:49

    You need to give information like:

    1. How many users using the application?
    2. How many applications connect to the database?
    3. What would be the load and how queries are given?

    For server configuration:

    1. It is better to have 2 separate servers for Apache/PHP and MySQL with the Linux of your choice.
    2. Try not to run too much else on either box; leave the resources for Apache/PHP and MySQL.

    You can get more info at Tuning MySQL.

提交回复
热议问题