If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > temporary tables

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-24-04, 08:06
Zamolxe Zamolxe is offline
Registered User
 
Join Date: Feb 2004
Location: Bucharest
Posts: 37
temporary tables

hello guys

i am working on a php application that uses mysql, and first it initialise some temporary tables in the database and then fills them with default values.

ex.
CREATE TEMPORARY TABLE IF NOT EXISTS `tmp_table1`
...
TYPE=InnoDB;

INSERT INTO `tmp_table` ... VALUES ...

i have to mention that the script uses mysql_pconnect()
mysql.connect_timeout = -1
mysql.max_persistent Unlimited
mysql.allow_persistent On
mysql.max_links Unlimited

mysql connect timeout = 5
mysql wait timeout = 28800

when i execute the script the temporary tables are ok, after i make some INSERT and UPDATE statements on the temporary tables, and i idle couple of seconds it shows me the message:

Table 'database1.tmp_table1' doesn't exist

I don't know what settings i have missed, or misunderstood, so my tmp tables timeout very quickly. Please help.

Thanks

Serban
Reply With Quote
  #2 (permalink)  
Old 12-24-04, 10:51
omiossec omiossec is offline
Registered User
 
Join Date: Jan 2003
Location: Paris, France
Posts: 320
I thinks that the problem is that you use a temporary table with innodb so each thread will access only to there temporary table
You may myisam instead
__________________
Olivier Miossec
--
http://www.lasso-developpeur.net/
--
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On