Reply
MySQL has run out of memory
Old 07-13-2009, 12:21 AM MySQL has run out of memory
!dahan!'s Avatar
Average Talker

Posts: 20
Trades: 0
::Help needed::

I am new to PHP and MySQL and have come across a problem I have no idea of solving. . . .
I've created a PHP web application in Dreamweaver, which uses a MySQL database, containing 14 tables.
On one page, I use a an SQL query to select data from 10 of the tables in the database.
However, when I try to preview the page in a browser, a PHP warning stating that the MySQL engine has run out of memory. Is there a way of increasing the Memory Cache of the engine, or a way to optimize the performance?
__________________
shoes in china
!dahan! is offline
Reply With Quote
View Public Profile Visit !dahan!'s homepage!
 
 
When You Register, These Ads Go Away!
Old 07-13-2009, 04:19 AM Re: MySQL has run out of memory
tripy's Avatar
Do not try this at home!

Posts: 3,176
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Your problem is not there...
Either your computer have a very low amount of memory (128/256Mo), or your query has missing joins which create an cartesian product.
This means that every rows in every table is matched with every other rows in all the other tables.
You can end up with billions of records with that error, and that would make any server choke, even with 4Go of ram.

Post your db schema and the query here, and we'll look through it.
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is online now
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 07-13-2009, 07:40 PM Re: MySQL has run out of memory
Super Talker

Posts: 101
Trades: 0
Also make sure that your application is not running MySQL on standard mode. Because standard mode requires more RAM.
__________________
AccuWebHosting.Com - Windows Hosting Expert
ASP.NET 3.5 | SQL 2005 Database | US Based Hosting Company | 24 X 7 Support | Daily Backups | Uptime Guarantee | Affiliates - $50 Per Sale
| Website Hosting
twhdir is offline
Reply With Quote
View Public Profile
 
Old 07-13-2009, 10:10 PM Re: MySQL has run out of memory
TWD
Ultra Talker

Posts: 475
Trades: 0
Can you post the exact errror message?

Are you sure the problem is with MySQL and not PHP?
If its PHP it can be quite easy to increase your memory limit
in the "php.ini" file.

You should talk to your hosting company about it.

Last edited by TWD; 07-13-2009 at 10:11 PM..
TWD is offline
Reply With Quote
View Public Profile
 
Old 07-15-2009, 12:42 AM Re: MySQL has run out of memory
!dahan!'s Avatar
Average Talker

Posts: 20
Trades: 0
Quote:
Originally Posted by TWD View Post
Can you post the exact errror message?

Are you sure the problem is with MySQL and not PHP?
If its PHP it can be quite easy to increase your memory limit
in the "php.ini" file.

You should talk to your hosting company about it.
i have ask the hosting company about it,they haven't solute my questions!
do i need the 4G of stockpile?
__________________
shoes in china
!dahan! is offline
Reply With Quote
View Public Profile Visit !dahan!'s homepage!
 
Reply     « Reply to MySQL has run out of memory
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.12546 seconds with 13 queries