p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 (http://p2p.wrox.com/forumdisplay.php?f=160)
-   -   Access denied Ch16. no error code (http://p2p.wrox.com/showthread.php?t=39303)

Mantis_Atlantis March 3rd, 2006 05:59 AM

Access denied Ch16. no error code
 
Code:

Access denied for user: 'mantisatlantis@localhost' to database 'phpforum'
CREATE TEMPORARY TABLE IF NOT EXISTS tmp ( topic_id INT(11) NOT NULL DEFAULT 0, postdate datetime NOT NULL default '0000-00-00 00:00:00')

Hi there,
This is a strange error -
if I change the CREATE TEMPORARY TABLE line to CREATE TABLE the error moves onto the next $sql statement in the viewforum.php file. And pulls that line up as the error.

I have server connection to a 3rd party host so I don't have access to the server rights. But the error just seems to do with something - my password is input correctly.

I dont know how to set the GRANT options though...

please help?


wildteen88 March 13th, 2006 02:16 PM

If you are recieving an "Access Denied" error message when trying to create a temporary table then it appears as though you dont have the correct database privilages. These privilages are set by the server admin. For now you will have to use CREATE TABLE instead of CREATE TEMPORARY TABLE



All times are GMT -4. The time now is 10:43 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.