473,397 Members | 1,969 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

My Stupidity (Various Questions)

I checked the archives, so I think this is the proper list to post this
on. I'm not altogether sure, though, so if I'm mistaken feel free to, I
don't know, beat me up and throw me into a dark alley.

I recently purchased a virtually hosted account and set up a PHP4 and
MySQL(3.23) site. I had no problems for the first month or so, then
trouble found me. *dramatic music twang*

I thought my site would stay small. But within the first month and a
half I've already gotten over 4 and a half million hits (2.2 million of
which were just in the past 8 days), and it just keeps getting bigger.=20
All I know is that I'm terrified. I have no clue how to keep my site up
with the traffic growing as it is. I thought I'd get like, 3 hits from
somewhere in Africa.

1. I'm not actually sure how to maintain the sanity of my database. I
run checks in the code (PHP) to the point that they become obsessive,
enter the data in such a way that there shouldn't be any conflicts, and I
make sure to optimize my tables every once in a while. Nevertheless a
couple of days ago the database crashed, four of my tables were
corrupted, and I had to repair some of the lost data by hand. I emailed
tech support, but all they told me was to optimize and repair tables
before emailing them next time. So I think I can assume it's my fault,
not theirs.

2. I don't know how large I can allow my database to get, and I don't
know what to do when things necessitate an even larger size. So far I
think the entire database is about 3MB, but I suspect it will get much
larger in time.=20=20

3. I have absolutely no idea, none whatsoever, how to set the system
variables without hurting something, and it's beginning to get on my
nerves. It's such a simple thing, but when I search for it... Like I
said, I'm an idiot. My users keep running into a max_user_connections
error. (I've checked my code; every page properly closes the connection
down. I simply need more.) I only have access via telnet, so I can't
alter the configuration files. I gather I need to restart MySQL anyway,
with the new variable. I also gather that I'm terrified my actions will
make something explode. I tried it on my PC, setting the variable, and
all that happened is that I ended up with a DOS window I couldn't close.=20
I'm an idiot, yes. I've actually run a mysql server off my computer for
the past year and I don't actually know how to shut it down, and
therefore I also have no idea how to restart it. That's how stupid I am.
It's not so much I couldn't get it without trial and error, it's that
I'm terrified to do anything unless I know exactly what to do.

I honestly wouldn't bother other people with my questions, except for the
fact that it feels so urgent. I am going to grab a few MySQL books as
soon as possible, though.

And in conclusion, please don't hurt me.

Sincerely,
A Very Stupid Little Girl

--=20
http://www.fastmail.fm - Same, same, but different=85

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/my***********...ie.nctu.edu.tw

Jul 19 '05 #1
1 1334
> 1. I'm not actually sure how to maintain the sanity of my database. I
run checks in the code (PHP) to the point that they become obsessive,
enter the data in such a way that there shouldn't be any conflicts, and I
make sure to optimize my tables every once in a while. Nevertheless a
couple of days ago the database crashed, four of my tables were
corrupted, and I had to repair some of the lost data by hand. I emailed
tech support, but all they told me was to optimize and repair tables
before emailing them next time. So I think I can assume it's my fault,
not theirs. Make sure you backup your database regularly. In my case I have set up
a cron job that runs a backup script. It dumps all the data (using
mysqldump)
then zips it and e-mails it to me.
My users keep running into a max_user_connections error.


Its important to make sure that your SQL queries are optimised: this way
each user connection is only taken up very briefly. If you're running
queries
that use un-indexed fields then each connection may be kept
much longer than it needs to be. As a result if each script runs twenty
times faster
(very possible with proper uses of indexes) then that's the same as having
20
times as many available connections.

To find out whether your queries need optimising, read up on the EXPLAIN
function.
With EXPLAIN you can examine the efficiency of your queries.

Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Garmt de Vries | last post by:
For a long time, I've used CSS to style my webpages, but only for media "screen" and "print". Now I've started looking into styling them for other media like "projection" and "handheld". I'd be...
2
by: wireless200 | last post by:
I've got a table with some datetime fields in it. One field (call it field 1) is of the form mm/dd/yyyy and the other two (fields 2 and 3) are in the form of hh:mm:ss:xx where xx is hundreths of...
24
by: | last post by:
Hi, I need to read a big CSV file, where different fields should be converted to different types, such as int, double, datetime, SqlMoney, etc. I have an array, which describes the fields and...
25
by: Viken Karaguesian | last post by:
Hello all, I'm somewhat of a newbie to webscripting. I've made a couple of websites in the past with WYSIWYG software, but now I'm much more interested in manual scripting. I have some...
1
by: Tony Miller | last post by:
All I need to create an aggregate query returning 3 rows say: Using the QBE JobID MaxRate EmployeeID GroupBy Max Max or GroupBy or ??? Using the query grid I want the...
8
by: john | last post by:
I would like to develope a system using a web or non-web based client (FrontPage, Access, etc.) that can send requests to various travel web site (using our user name and password for each) and...
21
by: Philip Hofstetter | last post by:
Hello, I think, I found a bug, but maybe it's just my stupidity. Granted: What I did was an error on my part, but I still think, PostgreSQL should not do what it does. I've already created a...
1
by: David Thole | last post by:
Hey all, So far my reading is proving to be very interesting and good. This book is very helpful, and I'm generally left with quite a few questions about how I'm going to do stuff with my...
5
by: learnPHP | last post by:
Hi, - I have 3 HTML files with javascript and PHP codes in each and each containing 8 questions for the user. - I want to convert these 3 files into 1 file say test. - That is when i first see...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.