krap
Mar 31 2006, 01:42 PM
Hi i am hosted at computinghost (which is great btw) but my site is causing mysql to hang because it is flooded and it causes my account to be suspended alot.. What is confusing is that not many users (7) are only when it happens and it is not a deliberate flooding. The mysql proccesslist when it gets too many connections: QUOTE | 7971 | andre_krap | localhost | andre_wap | Query | 439 | Sending data | SELECT unread,sentby,id FROM private WHERE sentto='Candi.Boi' ORDER BY id DESC LIMIT 0,15 | | 7973 | andre_krap | localhost | andre_wap | Query | 2 | Sending data | SELECT COUNT(*) FROM posts WHERE forum='43' AND thread='1' | | 7975 | andre_krap | localhost | andre_wap | Sleep | 1 | | | | 7987 | andre_krap | localhost | andre_wap | Query | 10 | Sending data | SELECT COUNT(*) FROM private WHERE unread='y' AND sentto='fatal.' | | 7992 | andre_krap | localhost | andre_wap | Query | 21 | Sending data | SELECT COUNT(*) FROM private WHERE sentto='butta' | | 7996 | andre_krap | localhost | andre_wap | Query | 22 | closing tables | SELECT COUNT(*) FROM private WHERE sentto='rap.pro' | | 8001 | andre_krap | localhost | andre_wap | Query | 17 | Sending data | SELECT COUNT(*) FROM private WHERE unread='y' AND sentto='PROPHETZ' | | 8006 | andre_krap | localhost | andre_wap | Query | 21 | Sending data | SELECT COUNT(*) FROM private WHERE sentto='at0z' | | 8009 | andre_krap | localhost | andre_wap | Sleep | 1 | | | | 8012 | andre_krap | localhost | andre_wap | Sleep | 1 | | | | 8015 | andre_krap | localhost | andre_wap | Sleep | 3 | | | | 8016 | andre_krap | localhost | andre_wap | Query | 17 | Sending data | SELECT COUNT(*) FROM private WHERE sentto='lacoste' | | 8029 | andre_krap | localhost | andre_wap | Query | 17 | Sending data | SELECT COUNT(*) FROM private WHERE sentto='rap.pro' | | 8030 | andre_krap | localhost | andre_wap | Query | 17 | Sending data | SELECT COUNT(*) FROM private WHERE sentto='angelfly' | | 8042 | andre_krap | localhost | andre_wap | Query | 24 | Sending data | SELECT COUNT(*) FROM private WHERE sentto='at0z' | | 8052 | andre_krap | localhost | andre_wap | Query | 17 | Sending data | SELECT COUNT(*) FROM private WHERE sentto='gattwo' | | 8073 | andre_krap | localhost | andre_wap | Query | 17 | Sending data | SELECT COUNT(*) FROM private WHERE sentto='angelfly' | | 8093 | andre_krap | localhost | andre_wap | Query | 20 | Sending data | SELECT COUNT(*) FROM private WHERE sentto='angelfly' | | 8105 | andre_krap | localhost | andre_wap | Query | 17 | Sending data | SELECT COUNT(*) FROM private WHERE sentto='candi.boi' | | 8106 | andre_krap | localhost | andre_wap | Query | 17 | Sending data | SELECT COUNT(*) FROM private WHERE sentto='gattwo' | | 8107 | andre_krap | localhost | andre_wap | Query | 21 | Sending data | SELECT COUNT(*) FROM private WHERE sentto='at0z' | | 8121 | andre_krap | localhost | andre_wap | Query | 17 | Sending data | SELECT COUNT(*) FROM private WHERE sentto='gattwo' | | 8123 | andre_krap | localhost | andre_wap | Query | 17 | Sending data | SELECT COUNT(*) FROM private WHERE sentto='angelfly' | | 8125 | andre_krap | localhost | andre_wap | Query | 24 | Sending data | SELECT COUNT(*) FROM private WHERE sentto='gattwo' | | 8138 | andre_krap | localhost | andre_wap | Query | 17 | Sending data | SELECT COUNT(*) FROM private WHERE sentto='gattwo' | | 8139 | andre_krap | localhost | andre_wap | Query | 17 | Sending data | SELECT COUNT(*) FROM private WHERE sentto='candi.boi' | | 8143 | andre_krap | localhost | andre_wap | Query | 17 | Sending data | SELECT COUNT(*) FROM private WHERE sentto='angelfly' | | 8145 | andre_krap | localhost | andre_wap | Query | 17 | Sending data | SELECT COUNT(*) FROM private WHERE sentto='tuli2' | | 8153 | andre_krap | localhost | andre_wap | Query | 21 | Sending data | SELECT COUNT(*) FROM private WHERE sentto='lacoste' | | 8166 | andre_krap | localhost | andre_wap | Query | 22 | Sending data | SELECT COUNT(*) FROM private WHERE sentto='gattwo' | | 8167 | andre_krap | localhost | andre_wap | Query | 22 | Sending data | SELECT COUNT(*) FROM private WHERE sentto='tuli2' | | 8175 | andre_krap | localhost | andre_wap | Query | 24 | Sending data | SELECT COUNT(*) FROM private WHERE sentto='candi.boi' | | 8181 | andre_krap | localhost | andre_wap | Query | 17 | Sending data | SELECT COUNT(*) FROM private WHERE sentto='tuli2' | | 8186 | andre_krap | localhost | andre_wap | Query | 17 | Sending data | SELECT COUNT(*) FROM private WHERE sentto='lacoste' | | 8187 | andre_krap | localhost | andre_wap | Query | 17 | Sending data | SELECT COUNT(*) FROM private WHERE sentto='tuli2' | | 8191 | andre_krap | localhost | andre_wap | Query | 17 | Sending data | SELECT COUNT(*) FROM private WHERE sentto='lamyboy' | | 8199 | andre_krap | localhost | andre_wap | Query | 17 | Sending data | SELECT COUNT(*) FROM private WHERE sentto='thug_h.b.k' | | 8203 | andre_krap | localhost | andre_wap | Query | 17 | Sending data | SELECT COUNT(*) FROM private WHERE sentto='lamyboy' | | 8204 | andre_krap | localhost | andre_wap | Query | 17 | Sending data | SELECT COUNT(*) FROM private WHERE sentto='tuli2' | | 8211 | andre_krap | localhost | andre_wap | Query | 17 | Sending data | SELECT COUNT(*) FROM private WHERE sentto='tuli2' | | 8222 | andre_krap | localhost | andre_wap | Query | 17 | Sending data | SELECT COUNT(*) FROM private WHERE sentto='tuli2' | | 8226 | andre_krap | localhost | andre_wap | Query | 17 | Sending data | SELECT COUNT(*) FROM private WHERE sentto='lacoste' | | 8231 | andre_krap | localhost | andre_wap | Query | 23 | Sending data | SELECT COUNT(*) FROM private WHERE unread='y' AND sentto='fatal.' | | 8244 | andre_krap | localhost | andre_wap | Query | 15 | Sending data | SELECT unread,sentby,id FROM private WHERE sentto='M2' ORDER BY id DESC LIMIT 0,15 | | 8248 | andre_krap | localhost | andre_wap | Query | 17 | Sending data | SELECT COUNT(*) FROM private WHERE sentto='lamyboy' | | 8267 | andre_krap | localhost | andre_wap | Query | 17 | Sending data | SELECT COUNT(*) FROM private WHERE sentto='tuli2' | | 8268 | andre_krap | localhost | andre_wap | Query | 15 | Sending data | SELECT unread,sentby,id FROM private WHERE sentto='M2' ORDER BY id DESC LIMIT 0,15 | | 8270 | andre_krap | localhost | andre_wap | Query | 17 | Sending data | SELECT COUNT(*) FROM private WHERE sentto='candi.boi' | | 8272 | andre_krap | localhost | andre_wap | Query | 17 | Sending data | SELECT COUNT(*) FROM private WHERE sentto='at0z' | | 8273 | andre_krap | localhost | andre_wap | Query | 17 | Sending data | SELECT COUNT(*) FROM private WHERE sentto='lacoste' | | 8295 | andre_krap | localhost | andre_wap | Query | 17 | Sending data | SELECT COUNT(*) FROM private WHERE sentto='gattwo' | | 8315 | andre_krap | localhost | andre_wap | Query | 23 | Sending data | SELECT COUNT(*) FROM private WHERE sentto='at0z' | | 8319 | andre_krap | localhost | andre_wap | Query | 17 | Sending data | SELECT COUNT(*) FROM private WHERE sentto='tuli2' | | 8322 | andre_krap | localhost | andre_wap | Query | 17 | Sending data | SELECT COUNT(*) FROM private WHERE sentto='gattwo' | | 8333 | andre_krap | localhost | andre_wap | Query | 17 | Sending data | SELECT COUNT(*) FROM private WHERE sentto='tuli2' | | 8337 | andre_krap | localhost | andre_wap | Query | 7 | Sending data | SELECT COUNT(*) FROM private WHERE unread='y' AND sentto='fatal.' | | 8339 | andre_krap | localhost | andre_wap | Query | 17 | Sending data | SELECT COUNT(*) FROM private WHERE unread='y' AND sentto='LAM' | | 8344 | andre_krap | localhost | andre_wap | Query | 7 | Sending data | SELECT COUNT(*) FROM private WHERE sentto='tuli2' | | 8346 | andre_krap | localhost | andre_wap | Query | 10 | Sending data | SELECT COUNT(*) FROM private WHERE unread='y' AND sentto='lacoste' | | 8353 | andre_krap | localhost | andre_wap | Query | 3 | Sending data | SELECT COUNT(*) FROM private WHERE unread='y' AND sentto='At0z' | | 8354 | andre_krap | localhost | andre_wap | Query | 2 | Sending data | SELECT COUNT(*) FROM private WHERE unread='y' AND
I have tried to make the timeout less which helped a bit but it still happened And my .htaccess QUOTE php_value mysql.connect_timeout 20 php_flag register_globals on AddType application/vnd.nok-s40theme nth ErrorDocument 404 http://krapwap.com/404.phpErrorDocument 503 http://krapwap.com/503.phpErrorDocument 403 http://krapwap.com/403.phpi really dont know what to do please help,, thanks Andre
Reply
OpaQue
Mar 31 2006, 02:28 PM
Hey Andre, Thanks for not making another topic in ComputingHost section and ranting there. I really appreciate your trying to seek a solution to this problem. I'd recommend you try using PERSISTENT CONNECTIONS. And You close the connection properly at the end of your script.
Reply
krap
Apr 18 2006, 02:41 PM
QUOTE(OpaQue @ Mar 31 2006, 03:28 PM)  I'd recommend you try using PERSISTENT CONNECTIONS.
ok ive found how to do that with msql_pconnect() QUOTE(OpaQue @ Mar 31 2006, 03:28 PM)  And You close the connection properly at the end of your script.
But i found this in php.net.. QUOTE msql_pconnect() acts very much like msql_connect() with two major differences.
First, when connecting, the function would first try to find a (persistent) link that's already open with the same host. If one is found, an identifier for it will be returned instead of opening a new connection.
Second, the connection to the SQL server will not be closed when the execution of the script ends. Instead, the link will remain open for future use (msql_close() will not close links established by this function).
Now im confused Andre
Reply
gameratheart
Apr 18 2006, 04:25 PM
If you use persistent connections, it will not stop MySql even if you tell it to. You have to stop it being persistent. (Anyone know how?)
Reply
krap
Apr 20 2006, 06:03 PM
I was editing my script to use pconnect but i discovered i was using it already hmmm
Reply
Similar Topics
Keywords : connections created mysql site- Html Form!
- Using MySQL?! (4)
Hey, I need your help again! I need some good working tutorial how I can update my SQL through
HTML form. I did use some tutorials online found with the help of google; but they do not work
properly; I mean there are still small mistakes. I need to have a good tutorial to follow. It
should be based on security and more things. It has to be done in proper way......
Mysql Won't Update
- (4)
Ok, so I'm making some arcade administration software so I don't have to add games the hard
way, well anyway, one of the features I have is that on the homepage is a featured author and as
such I just have it so it updates one line in the mySQL. Well, the page with the form passes on the
varibles fine and the updating page recieves them because I echoed everything, then I build the
query and I even echo the query and it comes out exactly how I want it to, but for some reason, the
database itself won't update even though all the varibles are there. Here's...
Create Table - Mysql Code - Help
- (1)
Tools Needed!
- PHP & MySQL (9)
Hello, everyone! I need some tools for those two things to test PHP scripts coming together with
database on my laptop, instead checking them on a web-server which takes time....
Mysql Error
- (3)
ok i need some more help from the wonderful coders here at Trap. I'm almost done with my CMS
script, but i'm having a problem with the installer.php file, when it trys to inseret the user
data into the database i keep getting the following error: CODE mySQL Error: You have an
error in your SQL syntax; check the manual that corresponds to your MySQL server version for the
right syntax to use near ';INSERT INTO `members` (`id`, `name`,
`username`, `password`, `email`, `title`) ' at lin...
Best Php And Mysql Editor For Noobs
- anyone any php or mysql editor that is good for noob (6)
hi there guys, from my previous posting, i am a noob in php and mysql programming. I want to know
if there are any php and mysql editors which are best for me as a noob. i appreciate your kindness
...
Can You Add Images Into A Mysql Database?
- Using Php? (20)
I'm learning php in class right now, but I'm still not that good at it, what I'm
wondering is when I write the php so that it can connect with a database, can I at the same time
have it that it is able to display back images that I choose. Like, I want a search feature, where
you can search for a keyword, and it will bring back a list of all the possible entries with that
keyword, but each of these entries will have a photo associated with it. Now, do I put these image
files directly into the database, or do I write the code to link them from my files to th...
Php And Mysql Programming
- anyone knows a code for mysql and php (2)
hi everyone! I am making a program using php and mysql...I am a noob on this so i need your
help guys...I want to make a simple program that will some values and then store them on a database
and then retrieve them...uhmm let me give an example out put of what i need. This is the example
say..: Enter First Name: Enter Last Name:
Enter Age: Enter Address: ..those
are the data needed for input values...my question now is how can I make a database...
Creating Profiles In Php/mysql ?
- (7)
i've started to learn php..im familiar to basics of php and mysql now.Now for example i want
that some user can register to my website , and after that he can Login and log out , and he can see
his profile.is there any tutorial about this ? or any helping url .. or any helping answer please
/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />...
Best Sites For Learning Php-mysql
- (4)
Hi I was reminded of this earlier by a post in a topic, meant to post it but forgot and the topic on
php books reminded me. Well anyway there is tyhschools for learning php (unless someone else knows
a better 1) but I wan't to know what is the best site for using php with mysql (using
phpmyadmin) also whats the difference between postgresql and mysql? though I must admit the
postgresql version of phpmyadmin whatever it's called looks better (visually)!...
Increment A Mysql Column
- how to increment a MySQL column one unit (6)
Hi, I have a column in a MySQL table which contains a counter of the views of the object described
by this table. I would like to increment this value by one everytime the object is viewed. Obviously
came into my mind the possibility of retrieving the value of this field, store it in a variable
increment this value by one and perform an UPDATE query again with this new value. My question is if
there is a MySQL option to update the field with its actual value plus an unit increment. I hope you
understand the issue....
Xbox Gamertag Profile On Site
- (2)
Alright, first off, sorry about the title, can't exactly explain it well. Basically, I want to
have it so; 1. My users sign up on my website (easy enough, don't need help with) Now, this
part might get confusing, but I need major help, as I see no way of doing it, yet I would love for
it to happen. When they post on my website (comment), (this part I don't need help with), I
wish for their gamer profile to show up under their name, so It'll say; Nate posted on (date):
(gamer profile here) blah blah blah the trouble is, I have no idea how to get the ...
Php + Mysql Question!
- While inserting data into MySQL, how can I know if the data I'm in (4)
Basically, I want to know if the Data I'm inserting through a Form is already there or not. Sort
of a Username registration page. I have this, but it doesn't appear to work... CODE
$result = mysql_query("SELECT * FROM users WHERE
username='$username'"); if($result == 1) { echo
'<h1>ERROR!</h1>The username you have chosen already exists!'; }
...
[php/mysql]id Trouble [resolved]
- (3)
session_start(); include "database.php"; if (!$_SESSION || $_SESSION { // User
not logged in, redirect to login page Header("Location: main.php"); } $result =
mysql_query("select * from users order by id asc"); while($r=mysql_fetch_array($result))
{ $username=$r ; $info=$r ; $msn=$r ; $email=$r ;
$id=$r ; $password=$r ; $userlevel=$r ; echo "
user ID User Level U...
[mysql/php]need Som Basic Help
- (13)
QUOTE session_start(); include "database.php"; include "edit.inc.php"; if (!$_SESSION
) { // User not logged in, redirect to login page Header("Location: main.php"); }
if(isset($_POST )){ $email = $_POST ; $msn = $_POST ; $info =
$_POST ; $updateemail = "UPDATE users SET email = '$email', msn =
'$msn', info = '$info' WHERE username = '$username'";
mysql_query($updateemail) or die("culd not edit your info"); echo "info updated"; } //
Display log...
Php Search Engine Script For Mysql Database
- (11)
A search engine is provided to facilitate the user with undemanding and clear-cut search options.
The search facility includes simple search, search by title, search by word/phrase, ect… Thus, the
user is at a safe distance from the risk of selecting files/folders ambiguously. In addition, a
history of recent searches can be preserved for future perusal. Now
day’s visitors have a large option for his needs on internet and so visitors are not vesting their
time by following the dead links on your site. So a search engine is essential for your...
[mysql]get Id Of Loged In User?
- (7)
how to get the id number of the loged in user? my db is id. username. password. i have tryed a
few things.. but i never seem to get it right /ohmy.gif" style="vertical-align:middle" emoid=":o"
border="0" alt="ohmy.gif" />...
Problem On Mysql "order By"
- (5)
Can someone please help...? I have a problem with using "ORDER BY" in mysql... CODE SELECT *
FROM `foo` WHERE b='abc' ORDER BY 'number' ASC i want to sort the table out by
the value in "number" which is a number.. but it came out to be sort by like this way...
1->10->2->20 it only sort out the front digit.... but what i want is it will sort by how great the
number is like this... 1->2->3........->10....->20 sorry my english isn't good enough...to
describe my problem properly... hope you can understand and help me on this.....thx...
Some Mysql Basics
- (4)
Greetings this tutorial will show you some mysql basics.. MySQL is one of the most used database. a
simple config file at the top add this CODE <?php ?> after <?php add
$username= "root"; // Username that has access to your database $password=
""; //Password that has access to your database $host = "localhost"; // The
host where the database is (mostly this is localhost) $db = "databasename"; //
The name of the database where you want to work with //connect to the database mysql_connect(...
Html Site With Login
- Is it possible? (2)
Hello. I´m building my own site and I need some help... Is it possible to use a login sistem in php
and mysql database in a html site? ...
Connecting Php Site To Database
- (6)
Please Help Me with this site's error http://gatewaybiz.x10hosting.com/surf/ ...
The Artists Tutorials :mysql Basic Commands
- The Artists is an online programming unit and gfx designing clan. (0)
Let's Talk about basic mysql commands used in php. I will now show you a list of the most common
MySQL FUNCTIONS : QUOTE mysql_connect(MySQL server name,username,password) - opens a connection
to a MySQL server. mysql_select_db(database name,connection id) - selects a database residing on
the MySQL server. The database name parameter referes to an active database on the MySQL server that
was opened with the mysql_connect function. The connection identifier is a reference to the current
MySQL connection. mysql_query(sql query) - sends a query to the currently ac...
Problem With A Mysql Join
- Problem with a mysql join (2)
Hello I am trying to write a script whereby I can pull an image out of one database table and
display it in relation to its category_id in another table. I am using a my_sql join function that
is joining the tables correctly, however it only shows the one same image from the top field of
those combined rows on every single page. I need it display the image according to its category_id
for that particular page. I am thinking I need to set variables to represent those specific rows but
I'm not sure how to do that. Here is my code CODE { $result = mysql_que...
Getting Php 5 To Work With Mysql
- getting PHP 5 to work with MySQL (0)
Just thought this would be of extreme help to those who are planning to migrate to php5 and still
continue using MySQL same way as before:.... to get mysql work with the php 5 copy
/dll/libmySQL.dll to the directory where php 5 resides and copy the /extensions/php_mysql.dll to the
directory where php.exe resides.(if you can't find the two above files probably you are using an
old release of php 5.you should check for latest at :http://snaps.php.net/) in additon uncomment
extension line in php.ini and add the following code to a gnereal database file(dbcon.php) in m...
Displaying Your Phone Number On A Wap Site
- (3)
I have a wap site elitezone.co.za and what i want to add is a code to the index page that displays
your operator and phone number. Does any one know the coding for this function if so please show me
here. Help will appriacated. Topic title modified. ...
Php Problems
- Clan Web site Problem (3)
Okay, so I have an old version of Nettek that I would like to modify. There is a bug that when you
get to the rank required for Set Rank, you can set your rank or other people's ranks to what
ever you want, even Webmaster and that's something I'd like to not have. I am wondering how
to fix the problem. What would I modify in the coding to set have it so you can only move people up
to 1 rank below you at best? I'm still learning PHP and can't modify things like this quite
yet....
Php And Mysql Applications
- (3)
Ok I have started useing PHP and MySQL recently and I am wondering how I go about createing an
application. I looked for tutorials and guids at w3schools.com but couldnt find what i was looking
for. All I really need is a list of a few steps to take to get a general idea on were to start when
makeing an application. I would appreciate any help you may have to offer....
New Arisen Site Problem
- Nettek Login Trouble (2)
Okay, so I installed Nettek and got everything set up. But every time I try and login, it says
it's incorrect. I've gone into the Database and gotten the password and since it was
simple, put them in and had tried but with no success. I tried changing the password but I still
couldn't get in. I tried adding another login and it still didn't work. I have no idea
what's wrong and I need some help....
Php, Mysql, Apache
- (4)
ok, i am hosting a smf (simple machines forum) and in order to do so, i need apache, mysql and php
installed. so i got apachefriends xampp. it works, but idk where to go from there. am i ready to
just host and stuff. or do i need to do a couple more things. basically what i need is a guide on
how to set up a php website. or just confirmation that all i have to do is load the files onto the
website, then im ready to go. thank you...
Use Bb Code On Your Site!
- Just like on forums! (7)
To use this you must have PHP support on your server. Just use this code: CODE <?php
$content = "Hello, World!"; $html = array('[b]',
'[/b]', '[i]', '[/i]', '[u]',
'[/u]'); $replacements = array ('<b>',
'</b>', '<i>', '</i>', '<u>',
'</u>'); $content = str_replace($html, $replacements,
$content); ?&...
Looking for connections, created, mysql, site
|
|
Searching Video's for connections, created, mysql, site
|
advertisement
|
|