search

Home  >  Q&A  >  body text

linux - Is there any relationship between the number of php connections and the number of mysql connections?

php apache mysql How do they establish connections between them? Does the number of connections affect each other?

高洛峰高洛峰2778 days ago572

reply all(2)I'll reply

  • 巴扎黑

    巴扎黑2017-05-16 13:04:59

    Let’s start with some ideas
    Concurrency in lamp is determined by the number of connections in mysql and the number of connections in apache.

    reply
    0
  • phpcn_u1582

    phpcn_u15822017-05-16 13:04:59

    1. How many phps apache calls up to serve depends on your apache configuration and php configuration. You can find out by searching for php-fpm related knowledge.

    2. php -> mysql, it depends on what php framework you use and whether you have an independent database broker service. Generally it is one to one.

    reply
    0
  • Cancelreply