Author |
Topic  |
|
NiteOwl
Junior Member
 
Canada
403 Posts |
Posted - 01 January 2008 : 14:56:45
|
As per this posting by ruirib http://forum.snitz.com/forum/topic.asp?TOPIC_ID=61685
I us a tool called MySQL-Front which has served me well and is free. However when I put in the SQL statment I receive the following error:
USE bcfmwu_dec11_07; /* Update Forum Topic Counts */ CREATE TEMPORARY TABLE F_T_COUNT ( FORUM_ID int(11), T_COUNT int (11) ) Access denied for user: 'NiteOwl@%' to database 'bcfmwu_dec11_07' UPDATE FORUM_FORUM SET F_TOPICS = 0 INSERT INTO F_T_COUNT SELECT FORUM_ID, COUNT(FORUM_ID) FROM FORUM_TOPICS WHERE T_STATUS<=1 GROUP By FORUM_ID Table 'bcfmwu_dec11_07.f_t_count' doesn't exist ETC.........
This is just a test database of course but I am confused as I already have the database open.
I guess my first lame question is to confirm that the statement given by ruirb is in fact a query?
Also anyone know if there is a reason that MySQL-Front will not work? I can run other queries no problem with the program.
UPDATE - Ok, removed the ; above and I seem to get further down the road:
I now get this:
USE bcfmwu_dec11_07 /* Update Forum Topic Counts */ CREATE TEMPORARY TABLE F_T_COUNT ( FORUM_ID int(11), T_COUNT int (11) ) You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'CREATE TEMPORARY TABLE F_T_COUNT ( FORUM_ID int(11), T_COUNT in UPDATE FORUM_FORUM SET F_TOPICS = 0 INSERT INTO F_T_COUNT SELECT FORUM_ID, COUNT(FORUM_ID) FROM FORUM_TOPICS WHERE T_STATUS<=1 GROUP By FORUM_ID Table 'bcfmwu_dec11_07.f_t_count' doesn't exist Etc ...
Is this error an easy one to rectify?
|
-=NiteOwl=-
|
Edited by - NiteOwl on 01 January 2008 15:04:04 |
|
modifichicci
Average Member
  
Italy
787 Posts |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
|
NiteOwl
Junior Member
 
Canada
403 Posts |
Posted - 01 January 2008 : 16:24:24
|
ok thanks I will dig into that! |
-=NiteOwl=-
|
 |
|
NiteOwl
Junior Member
 
Canada
403 Posts |
Posted - 01 January 2008 : 22:08:25
|
Arg -I am really struggling with this, I downloaded the SQLYog program (pretty cool and almost the same as mySQL-Front) but I just can'[t get it to go. I have all the permissions, this is a sample of the return I am getting
(0 row(s)affected) (0 ms taken)
(0 row(s)affected) (0 ms taken)
Error Code : 1146 Table 'saveourferries.FORUM_FORUM' doesn't exist (0 ms taken)
Error Code : 1146 Table 'saveourferries.FORUM_TOPICS' doesn't exist (0 ms taken)
Error Code : 1146 Table 'saveourferries.FORUM_FORUM' doesn't exist (0 ms taken)
(0 row(s)affected) (0 ms taken)
Error Code : 1146 Table 'saveourferries.FORUM_FORUM' doesn't exist
My database name is saveourferries and for sure the tables are there, yet this says no they are not. please if you have a suggestion I am all ears, this is and old database I am testing on and I would be happy to email you the connect string if you would mind looking. rebeatty at shaw.ca
|
-=NiteOwl=-
|
Edited by - NiteOwl on 01 January 2008 22:11:20 |
 |
|
modifichicci
Average Member
  
Italy
787 Posts |
|
NiteOwl
Junior Member
 
Canada
403 Posts |
Posted - 02 January 2008 : 12:14:15
|
oh my goodness, you are correct!! I had forgotten about that little annoyance I discovered many years ago and have forgotten, hmm ok I will have another look! thank!
Eureka, that was the problem, thankyou again everyone!!
|
-=NiteOwl=-
|
Edited by - NiteOwl on 02 January 2008 12:24:53 |
 |
|
modifichicci
Average Member
  
Italy
787 Posts |
|
|
Topic  |
|
|
|