Ask a Question related to PHP Development, Design and Development.
-
Dimi #1
PHP-mysql in background
Hello all,
On my PHP5-APACHE webserver, I would like to run script requiring
MySQL queries. My problem is that when I launch this script, the MySQL
process uses about the entire ressource of the server.
So, when this script is running, i can not navigate in my website.
I have included the php function pcntl_fork() to launch my MySQL queries
on a child process, but MySQL is still using the whole ressources.
I have also reniced the MySQL priority to 20 but it still blocks
the httpd process.
How can I do to launch big MySQL scripts (via my web interface) and
keep using my website normally? It would not be a problem if this MySQL
script takes a long time to finish.
Any idea?
Dimitri.
Dimi Guest
-
#40471 [NEW]: PHP 5.2.1 failed to be compiled with MySQl 5.0.33, MySQL 5.0.27, MySQL 5.1.15
From: pcdinh at gmail dot com Operating system: CentOS 4.4 PHP version: 5.2.1 PHP Bug Type: Compile Failure Bug description:... -
#40207 [NEW]: Warning: mysql_connect() [function.mysql-connect]: Lost connection to MySQL ser
From: arif at peshawaronline dot com Operating system: PHP version: 4.4.4 PHP Bug Type: Compile Warning Bug description: ... -
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
When i try to start my mysql server, i get this error ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'... -
Seen this message? Can't connect to local MySQL server through socket '/tmp/mysql.sock'
Seen this message? Can't connect to local MySQL server through socket '/tmp/mysql.sock' I got this trying to install DBI and DBD for mysql from... -
Matching Jpeg background with Page Background?
In article <bgpgfq$3sh$1@forums.macromedia.com>, "JohnnyA" webforumsuser@macromedia.com wrote: You can't, because (1) JPEG compression almost...



Reply With Quote

