![]() |
Description:
I see a lot of people here who are trying to fix a problem or install a hack, sometimes requires them to run a SQL query on their database, and just don't know quite how. I know you can use Telnet, but not everyone has access, and I know there's phpMyAdmin, but who needs all that when you just need to update a table or add a field. Of course running select queries with this is not very useful, but I'm working on changing that. Main Features: - Run a single query - Run multiple queries - Option to show / not show query after execution - Confirmation page Demo: 1. http://forum.t-cove.com/query1.gif 2. http://forum.t-cove.com/query2.gif 3. http://forum.t-cove.com/query3.gif 4. http://forum.t-cove.com/query4.gif Installation: 1. Unzip query.php from the attached zip file and upload to your admin folder. 2. In index.php (under your admin folder), replace PHP Code:
PHP Code:
That's it - can it get any more simple? :) Feedback, requests, future ideas and anything else is more than welcome. :D |
kool thanks for the hack m8 keep up the good work.
|
Great Idea FireFly! Off to install this one :) Great thinking.
|
Agree with Bane
/me is off installing... |
Worked like a charm. But I have a suggestion:
If I want to run a query which gives a result, e.g. the example query from mySQL Code:
select BENCHMARK(1000000,encode("hello","goodbye")); |
Thanks all for the comments.
[QUOTE]Originally posted by FireFly Of course running select queries with this is not very useful, but I'm working on changing that. |
As far as I know he's male (right?)
Great hack btw :D -Tom |
interesting hack.. :)
|
great hack, so easy 2 install even me gran could have installed it!! :)
|
I've been working on this alot today.
I wanna go to sleep, and I don't have time to create new screen shots, edit posts and such, so I'm just going to post this new file here and when I wake up I'll sort everything. This has support for basic queries, such as Code:
SELECT ... FROM ... WHERE To install this simply upload the new file and overwrite the old one. A basic screen shot is available in the zip file. *yawn* Please post any feedback and suggestions about this, so I could fix / add anything to the new re-release! Thanks! :) |
This isn't as fancy but it can run every query MySQL can process. It gives columnized results and it works on all versions of vBulletin. This is probably my first hack ever for vBulletin and I have been using it successfully for the last year.
Just rename it query.php and put a link for it in index.php. |
So you're saying I wasted a day of my life? :p
Thanks Wayne. :) |
Quote:
|
Thumbs up dude
This is some serious hack! Small, easy to do and running fine! :D Thnx -Alex |
Thanks For the hack Firefly, This will make things alot easier.
|
Got a weird error. I did what you said, then when I clicked on the link on the side to add a query. It went to the page, and above it all had this:
Code:
Fatal error: Call to undefined function: getrowbg() in /usr/accountname/forum/admin/query.php on line 66 |
It's looking to work but what horible look (wluke file)
One small problem ... If there is HTML in table, there is not keep caracter and translate in HTML in the page ... Sorry about my bad english :) |
Simple, and a all around Great Feature!
Thanks... God Bless, |
Great hack FireFly!!!! :D
I love this one. Good job! |
This is a good idea, but it definitely needs some way to view the output. For example, I'd like to be able to run this query and see the list it gives me:
SELECT username FROM user WHERE dct='X' ORDER BY username ASC (Which involves a custom field in my user table.) |
Is this similar to TELNET ?? ( which I have but it would be easier to do it through here ! )
Also, how acn I make a DB BACKUP through this ?? thanks |
JJR512, I understand that the code wluke posted does that.
Like he said, it's not fancy or anythin, but works. Cyrus, no, not really. This is more like (a very very lite version of) phpMyAdmin, not Telnet. Although most of the commands you can use in Telnet you can use here (SELECT, UPDATE, INSERT, DELETE, ALTER queries, stuff like that), I'm not sure how you can do a backup from here. And don't forget there is a backup utility in vBulletin. :) |
I have had an error with wluke's version. I don't know if there was a thread for that or not, so I don't know where else to put this but here, sorry.
This is the query I attempted to run: SELECT username FROM user WHERE dct='2' ORDER BY username ASC This is the error message I received: Quote:
|
This has got to be one of the best hacks I have ever seen! Much better then having sort out MyAdmin!
|
This is very handy and works like a charm (most of the time) :)
Thanks! |
This is just the update for 2.20 Enjoy...Follow all other instructions
In the admin/index.php Find: // *** makenavoption("Add","announcement.php?action=add", "|"); makenavoption("Modify","announcement.php?action=mo dify"); makenavselect("Announcements"); // *** Above that place this: makenavoption("Run MySQL","query.php?s=<?php echo $session[sessionhash]; ?>"); makenavselect("MySQL Query"); And save and upload And upload the Query.php to your admin folder.... Enjoy... Chris |
Very Cool Hack
Thank you FireFly. |
thanks GREAT HACK!!
|
Works great!
|
just another query.php, if I may post it.
features: - run nearly every command MySQL understands - select the database - HTML-Tags are shown as HTML-Tags missing features: - multiple queries - no confirmation known bugs: - select of DB only works if host/user/pass are the same as for VBB - warning on statements wich return no result (it still works, but I don't know how to fix) |
and i am one of those people who has no idea, appreciated m8!
|
great hack firefly *installed*
|
FANTASTIC hack! Just what I need. Thanks :D
|
Hello m8
Does this work in version 2.2.5 When i did a search for PHP: Code:
<tr><td> i tried various pieces from it , but could not locate any of it...? Frankly cause i used vbhacker, and got a error that told me to run a qeury, but i can not locate phpMyAdmin or whatever u need to run a mysql query :( (amm reading up now to find the answer) WHAT AM I MISSING!! :( |
VB225 Update
In admin/index.php find: Code:
makenavoption("vBulletin Options","options.php?t=0","<br>"); Code:
makenavoption("MySQL Query","query.php?action=enter","<br>"); |
wicked, thnx m8!!!!!!!!
|
you are more then welcome. ;)
|
Thank you for this hack!
Installed it with no problem... on 2.2.5 |
Quote:
|
did you read the update i published 5 posts above? is alot easier to read first the thread to make sure there are no updates published.
https://vborg.vbsupport.ru/showthrea...576#post241576 |
All times are GMT. The time now is 02:46 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|