Current time: 05-24-2012, 01:34 PM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 7 Votes - 3.86 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tutorial] Common SQL queries and how to run them
05-08-2011, 06:09 PM (This post was last modified: 05-08-2011 06:13 PM by ProVirus.)
Post: #31
RE: [Tutorial] Common SQL queries and how to run them
This user has been denied support. This user has been denied support.
Matt what is the sql query to delete all the threads of a SINGLE USER???

PHP Code:
DELETE FROM `mybb_threadsWHERE `uid` = '145' 
is this right?
Find all posts by this user
Quote this message in a reply
05-08-2011, 09:33 PM
Post: #32
RE: [Tutorial] Common SQL queries and how to run them
Yes, it is right.

I recommend backing up your mybb_threads table first though, just in case something goes wrong.
Find all posts by this user
Quote this message in a reply
09-05-2011, 04:53 AM (This post was last modified: 09-06-2011 01:04 AM by OldeWolfe.)
Post: #33
RE: [Tutorial] Common SQL queries and how to run them
With more than one board admin, how does one know what one's uid is? Or are all the admin's uid's the same, meaning it is a group designation and not an individual?
Find all posts by this user
Quote this message in a reply
11-29-2011, 09:39 PM (This post was last modified: 11-30-2011 10:51 AM by 4users.)
Post: #34
RE: [Tutorial] Common SQL queries and how to run them
i do upgrade mybb
I gave my password, but show error
I use this training so I changed the password to the test but show :

Error
The password you entered is incorrect. If you have forgotten your password, click here. Otherwise, go back and try again.

Help me
for Change password use this cod ?

UPDATE `mybb_users` SET `password` = '098f6bcd4621d373cade4e832627b4f6', `salt` = '' WHERE `uid` = 'X'

X For Me is 1

But my password [test] not Change
please

4users.ir

Mohammad
Find all posts by this user
Quote this message in a reply
02-07-2012, 08:21 PM
Post: #35
RE: [Tutorial] Common SQL queries and how to run them
Is there a query I can run to delete all pm's from a specific member?
Visit this user's website Find all posts by this user
Quote this message in a reply
02-07-2012, 08:29 PM
Post: #36
RE: [Tutorial] Common SQL queries and how to run them
PHP Code:
DELETE FROM mybb_privatemessages WHERE fromid='uid' 

~Paul H.
[Image: HZbjvu]
Support PM's will be ignored.
(01-19-2012 12:45 AM)euantor Wrote:  That's caused by plugins being disabled I believe. Don't quote me on that though Wink
Visit this user's website Find all posts by this user
Quote this message in a reply
02-07-2012, 09:23 PM
Post: #37
RE: [Tutorial] Common SQL queries and how to run them
Thanks Paul!
Visit this user's website Find all posts by this user
Quote this message in a reply
02-19-2012, 11:41 PM
Post: #38
RE: [Tutorial] Common SQL queries and how to run them
Nice tips though noticed one thing:

Quote:Also notice that with these 2 example, the layout is different. One has ` and ' with spaces between each bit, and one doesn't. Generally speaking, either style will work, but watch out; if you use the first way, you must make sure you sue the correct ` or '. Database tables or column names must have a `, and the information that is to be changed must have a '. SQL query functions are case in- sensetive, so using UPDATE/update, SET/set, WHERE/where will still work fine, whether it's in capitals or not.

You have to sue it? Toungue
Visit this user's website Find all posts by this user
Quote this message in a reply
04-22-2012, 03:51 PM (This post was last modified: 04-22-2012 03:52 PM by winds.)
Post: #39
RE: [Tutorial] Common SQL queries and how to run them
Is it possible to add to an existing column?

For example if I have a table named Points, and within that table I have a column named Points2

If there were 2 rows in that table, row 1 had 100 for Points2 column, and row 2 had 200 for the Points2 column, is it possible to add 100 to each, so that row 1 would now have 200, and row 2 would have 300?

Also is it possible to prune stuff too?
If one column is used for dates, is it possible to prune from a certain date to another date?

Cheers!
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | MyBB | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication