Check temporary tables

Posted on 2004-11-24
Medium Priority
Last Modified: 2012-08-13

My configuration is PHP 4.3.3., phpMyAdmin 2.5.3 and Apache 1.3.24.
I'm trying to use temporary tables.

It seems there is no issue when i create the table (no error message), but i can see the table within phpMyAdmin.

What can i do with PHP in order to create a temporary table, to read in it ?

Question by:Richard Coffre
1 Comment
LVL 48

Accepted Solution

hernst42 earned 2000 total points
ID: 12664300
You will not be able to read a temporary table within phpmyadmin as the temporary table only exists as long as the connection to the mysql-server is opend. As phpmyadmin closes the connection to the server after each request (getting a html-page from the webserver) the temporary table is destroyed. See
http://dev.mysql.com/doc/mysql/en/CREATE_TABLE.html :
From MySQL 3.23 on, you can use the TEMPORARY keyword when creating a table. A TEMPORARY table is visible only to the current connection, and is dropped automatically when the connection is closed. This means that two different connections can use the same temporary table name without conflicting with each other or with an existing non-TEMPORARY table of the same name. (The existing table is hidden until the temporary table is dropped.) From MySQL 4.0.2 on, you must have the CREATE TEMPORARY TABLES privilege to be able to create temporary tables.


Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating and Managing Databases with phpMyAdmin in cPanel.
Recursive SQL is one of the most fascinating and powerful and yet dangerous feature offered in many modern databases today using a Common Table Expression (CTE) first introduced in the ANSI SQL 99 standard. The first implementations of CTE began ap…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses
Course of the Month16 days, 13 hours left to enroll

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question