nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Can anyone tell me what this means?

This is a discussion on Can anyone tell me what this means? within the Databases servers forums, part of the Mastering Servers category; Firstly Hi all i'm new here and VERY new to running my own server. I set up a slow-query log ...

Register free or login to your existing account and remove all advertisements.


Go Back   nixCraft Linux Forum > Mastering Servers > Databases servers

Linux answers from nixCraft.


Databases servers Discussions of databases of all types - especially MySQL.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-05-2010, 08:29 PM
Junior Member
User
 
Join Date: Feb 2010
OS: Debian
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Fazer is on a distinguished road
Default Can anyone tell me what this means?

Firstly Hi all i'm new here and VERY new to running my own server.

I set up a slow-query log to try and help me out and came across this entry that I just don't understand:-

(SELECT permissions, permissions2, FIND_IN_SET(forumid, '21,18,-1') AS pos, forumid
FROM moderator
WHERE userid = 44 AND forumid IN (21,18,-1)
ORDER BY pos ASC
LIMIT 1)
UNION
(SELECT permissions, permissions2, 0, forumid
FROM moderator
WHERE userid = 44 AND forumid = -1
);



Would it be possible for someone to explain this in very simple terms for me??

Thanks in advance
Fazer
Reply With Quote
  #2 (permalink)  
Old 02-06-2010, 11:25 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,674
Thanks: 11
Thanked 240 Times in 180 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Above sql is used to combine the result from multiple SELECT statements into a single result set.
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #3 (permalink)  
Old 02-06-2010, 09:21 PM
Junior Member
User
 
Join Date: Feb 2010
OS: Debian
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Fazer is on a distinguished road
Default

I was just a bit concerned, as I am new to this, and it mentioned Moderator and user 44 in the same message, Now one thing I do know is that user 44 is not a moderator....

But I think I understand it now.............hopefully lol

Thanks for your reply
Reply With Quote
  #4 (permalink)  
Old 02-18-2010, 06:10 AM
Junior Member
User
 
Join Date: Feb 2010
Location: UK
OS: Linux From Scratch
Posts: 6
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 0
AnnoLoki is on a distinguished road
Default

it says FROM moderator - that means it's trying to pull records about that users permissions from the moderator -table- in the db, presumably, to see if that user does have any moderator priviledges. If the user doesn't, the result would just come back empty (no records found in 'moderator' matching that user etc)
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
WHat does -MCPAN means diptanjan Linux software 2 06-07-2007 09:49 AM


All times are GMT +5.5. The time now is 10:14 AM.


Powered by vBulletin® Version 3.8.4 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2009 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38