vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   problem running query (https://vborg.vbsupport.ru/showthread.php?t=69218)

wreck 09-08-2004 09:06 AM

problem running query
 
im trying to run a query but everytime i get this message

Error

SQL-query :

ALTER TABLE `postbit`.`user` ADD `battle` INT( 6 ) DEFAULT '0' NOT NULL

MySQL said:

#1142 - alter command denied to user: 'rapdome@localhost' for table 'user'

Dean C 09-08-2004 10:37 AM

That's very unusual. What it means is that your MySQL user does not have permission to run SQL queries to alter tables. However, I think it may not be this.

There is no postbit table in vB3 (assuming you are running this query on a vB3 board). Also I've never seen that format of query you are trying to run. So run this query:

[sql]
ALTER TABLE `user` ADD `battle` INT( 6 ) DEFAULT '0' NOT NULL
[/sql]

wreck 09-08-2004 09:33 PM

that query ran

ah wait, im on vB2 :-s doesnt seem to have caused problems

but it doesnt matter too much, there is a problem with the hack he gave me :-\

the files are the right ones (.php) but the instructions seem to be confusing me, especially as it has some coding from the rpg battle hack in it

rake 09-08-2004 09:59 PM

Quote:

Originally Posted by Dean C
That's very unusual. What it means is that your MySQL user does not have permission to run SQL queries to alter tables. However, I think it may not be this.

There is no postbit table in vB3 (assuming you are running this query on a vB3 board). Also I've never seen that format of query you are trying to run. So run this query:

[sql]
ALTER TABLE `user` ADD `battle` INT( 6 ) DEFAULT '0' NOT NULL
[/sql]

The database is called posbit, the table is 'user'.

Anyway, wreck, have you decided to use someone else's hack or am i misinterpreting here?

wreck 09-08-2004 10:19 PM

a friend sent me this one but it isnt working, we are trying to fix it but i cant figure it out

so if this doesnt work and i can find the 115$ then i will still get yours.

but money is extremely scarce at the minute


All times are GMT. The time now is 06:22 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01011 seconds
  • Memory Usage 1,717KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete