vBulletin Modifications

[How To] Run a Query

Welcome to vBHackers.com! - vBHackers Updates:

Go Back   vBulletin Modifications > General vBulletin Section > General vBulletin Support > vBulletin Modification Tutorials

Reply
 
LinkBack Thread Tools
Old 04-07-2004, 03:59 AM   #1
Ken Iovino
Founder
Ken Iovino's Avatar
Join Date: Mar 2004
Real Name: Ken Iovino
Location: Miami, Florida
Ken Iovino is on a distinguished road

Default [How To] Run a Query

This small tutorial will guide you threw the steps of running a query. Queries are often needed to to be run before a hack can work properly. If your reading a hack install file, and come across something that says "run the following queries" This is what you can do.



There are three diffrent ways to run queries. So pick which is best for you.


Version 1 of 3 (Admin CP If turned on in config.php)
  1. Log into your Admin Control Panel (located at www.yoursite.com/forums/admincp)
  2. On the left menu scroll down to the very bottom. You should see "Import & Maintenance" (screenshot 1a)
  3. Click on "Execute SQL Query" (screenshot 1a)
  4. You should see "Manual Query" Go ahead and run the following query.
    You must first be a registered member to view any code.
    (screenshot 1b)
  5. You will see a message that says "Confirm Query Execution" Click continue (Screenshot 1c)
  6. Then you will be redirected to a "vBulletin Message" In this case "Affected Rows: 0"
  7. That wasn't to hard no was it?

ScreenShot A
ScreenShot B
ScreenShot C


--------------------------------


Version 2 of 3 (phpmyadmin)
  • Log into phpMyAdmin. This will be located in your control panel where you are being hosted. Most sites use cPanel X.
  • phpMyAdmin will be located in one of two locations.
    1. On the main page of your cPanelx after you have logged in. Should be a link called phpMyAdmin
    2. On the main page you will see "MySQL Databases" click that and scroll to the very bottom and you should see a link that says "phpMyAdmin" click it. That should log you into phpMyAdmin.

  • Great now where logged in.
  • Choose your forums database in the dropdown menu located on the top left hand of that page (screenshot 2a)
  • After you select your forums database you will be redirected to a page with a list of things. Some should say Table, Action. Records, Type. Size, and Overhead.
  • On the top you will see a link that says "SQL" Click it, that will directed you to the page were you can run queries (screenshot 2b)
  • You will see a box to type in
  • Go ahead and run the following query.
    You must first be a registered member to view any code.
    (screenshot 2c)
  • a popup message will show asking "Do you really want to: DELETE FROM session. JUst press okay.
  • That was easy right?

ScreenShot A
ScreenShot B
ScreenShot C


--------------------------------


Version 3 of 3 (Uploading .sql files via phpmyadmin)
  • Few times you may have to upload a .sql file via phpMyAdmin.
  • Log into phpMyAdmin using the instructions from the above tutorial.
  • Once logged into phpMyAdmin
  • Choose your forums database in the dropdown menu located on the top left hand of that page (screenshot 3a)
  • After you select your forums database you will be redirected to a page with a list of things. Some should say Table, Action. Records, Type. Size, and Overhead.
  • On the top you will see a link that says "SQL" Click it, that will directed you to the page were you can run queries (screenshot 3b)
    You will see a box to type in and under that box will be something that says. "Or Location of the textfile "
  • From there you my click browse, and choose the location of the .sql file and click submit/go
  • Thats it very simple!

ScreenShot A
ScreenShot B
ScreenShot C

If you have any questions about running queries, please don't not hesitate to ask how to questions in the General Hacking forum. Thanks for reading.
__________________
Earnersforum.com - Learn how to make money online! New Look!

Ken Iovino / vBHackers.com
vBSEO 3.1 GOLD Released vB Blogs Compatible | Non-Encrypted | Branding Removal Option | Sitemaps 2.1 | Language Packs

Crawlability Network: vBulletin SEO | vBulletin Hackers




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 06-12-2006, 10:31 PM   #2
Coder
Norman's Avatar
Join Date: May 2006
Real Name: Norman
Location: [Italy]
Norman is on a distinguished road

Default

About first version: When I go on AdminCp -> Execute SQL Query board show me this message:

Quote:
Originally Posted by vBulletin Message
You are not authorized to execute SQL queries

Go Back
What's wrong?

EDIT: I'm in local, and I use EasyPHP




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-13-2006, 01:13 AM   #3
Ken Iovino
Founder
Ken Iovino's Avatar
Join Date: Mar 2004
Real Name: Ken Iovino
Location: Miami, Florida
Ken Iovino is on a distinguished road

Default

Edit your includes/config.php file to allow you to run queries.

Find:
You must first be a registered member to view any code.
Replace With:
You must first be a registered member to view any code.
X = Your userid
__________________
Earnersforum.com - Learn how to make money online! New Look!

Ken Iovino / vBHackers.com
vBSEO 3.1 GOLD Released vB Blogs Compatible | Non-Encrypted | Branding Removal Option | Sitemaps 2.1 | Language Packs

Crawlability Network: vBulletin SEO | vBulletin Hackers




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-13-2006, 05:15 AM   #4
Coder
Norman's Avatar
Join Date: May 2006
Real Name: Norman
Location: [Italy]
Norman is on a distinguished road

Default

And if I am in a local forum I must put "127.0.0.1", right?




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-13-2006, 08:00 AM   #5
Coder
Senna's Avatar
Join Date: Mar 2005
Location: LalaLand
Senna is on a distinguished road

Default

Quote:
Originally Posted by Norman
And if I am in a local forum I must put "127.0.0.1", right?
you need to enter your userid, most likely "1", as I suppose you are using the user that was created during the setup

your userid on this board is "7215"




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-13-2006, 08:22 AM   #6
Coder
Norman's Avatar
Join Date: May 2006
Real Name: Norman
Location: [Italy]
Norman is on a distinguished road

Default

Ahhhhh I understand! Thanks man!

Great!




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-29-2007, 02:23 PM   #7
vB Newbie
Join Date: Aug 2007
puta.mp3 is on a distinguished road

Default

Screenshoots are missing...




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply




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

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 On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[How To] set usernames in color/bold/italic GirlsOnTop vBulletin Modification Tutorials 17 05-13-2008 02:24 AM
[How To] Run vBulletin On your P.C. Ken Iovino vBulletin Modification Tutorials 81 12-15-2007 02:50 AM
[How To] Add Options per forum Ken Iovino vBulletin Modification Tutorials 10 03-03-2007 03:25 PM
[How To] Run a vb page outside of the forum directory Junior vBulletin Modification Tutorials 7 01-10-2007 07:05 PM
How Do u run Query's? Spin Doctor General vBulletin Support 2 04-13-2005 01:39 PM


All times are GMT -3. The time now is 04:23 PM.


SEO by vBSEO 3.1.0 ©2007, Crawlability, Inc. (Patent Pending)