Stress Testing for Mysql via php -


i want check mysql connection limit php. inserted mysql_connect inside loop mysql_pconnect doesnot increase number of connections on mysql.... came know php doesnot support multi-threading

so how can it, optimizing mysql.ini file max-connection , want make sure stress testing

the fourth parameter mysql_connect $new_link.

by default, mysql_connect not create new link if given same arguments within same request, happening you. override behaviour setting $new_link true.

http://php.net/manual/en/function.mysql-connect.php

do not use mysql_ functions: the mysql extension deprecated , removed in future. use mysqli or pdo.

edit: added mysql_ warning


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -