Ok, so my HOST has a JQueery limit or max_questions limit or throtles it at 75,000. which im sure all of you out there on a shared host have some sort of limit like me. I only noticed this problem when trying to import 1,000s of products through P. CSV import suite. And of course no one really wants to help you. So.....I found the following code to slightly help by randomizing multiple users and droping the number of importing products to 250 at a time. It still hits an overloaded user once in a while but i able no to upload on avg 1000 products an hour. where before, with one user i could only upload a couple hundred an hour. Here is my present code:
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'myDATAbaseNAME');
/** MySQL database username */
$auser = array( 'user1', 'user2', 'user3', 'user4', 'user5', 'user6', 'user7', 'user8', 'user9');
$user = $auser[ rand(0,5) ];
define('DB_USER', $user); // Your MySQL username
/** MySQL database password */
define('DB_PASSWORD', 'MYpasswordHERE');
/** MySQL hostname */
define('DB_HOST', 'myhostingaccountname.HOSTmysql.com');
/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8');
/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');
_____________________________________________________________________
Now, I found the following php code which as state should:
" This should try every name until it can connect - thus (in theory) exponentially adding available mysql resources your database is alotted."
Here is the code:
<?
function dbConnector(){
$aUser = array("userOne","userTwo","userThree");
$aPass = array("passOne","passTwo","passThree");
for($i=0; $i<sizeof($aUser); $i++){
if(!($oConn = mysql_connect("whatever.powweb.com",$aUser[$i],$aPass[$i]))){
$errorlist .= mysql_error()."
";
if(!($oConn = mysql_connect("localhost",$aUser[$i],$aPass[$i]))){
$errorlist .= mysql_error()."
";
}
else{
return $oConn;
}
}
else{
return $oConn;
}
$iCount++;
}
die($errorlist);
}
//sample of a connection call...
//once you've connected and it gives you an object,
//treat it like you would any other MySQL connection object.
$mysql_connection_object = dbConnector();
//do your queries or whatever you want like usual
$mysql_close($mysql_connection_object);
?>
____________________________________________________________
What I would like is for someone to rewrite the second code above to work in word press. To replace my existing random code in the wp-config.php file. I believe this will solve many peoples problems!!! Please some rewrite this code to work! Thanks!