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
Post a Comment