The Cache: Technology Expert's Forum
 
*
Welcome, Guest. Please login or register. November 21, 2008, 03:20:06 PM

Login with username, password and session length


Pages: 1 [2]
  Print  
Author Topic: What did you change in phpMyIDE 0.5a ?  (Read 947 times)
perkiset
Olde World Hacker
Administrator
Lifer
*****
Online Online

Posts: 5142


:sniffle: Humor was so much easier before.


View Profile
« Reply #15 on: June 05, 2008, 11:36:58 AM »

personally I don't use quotes at all on those commands... if I am doing them via phpMyAdmin and require them then you must use the backquote ( ` ) instead of regular quotes.

Dink I was commenting on the difference between create/drop TABLE and create/drop DATABASE - you'll need super to add a database to the MySQL instance I believe.

I'm sorry but lots as flown around and I'm confused about exactly what is still the trouble... is it still when you click on the Views radio button?
Logged

If I can't be Mr. Root then I don't want to play.
dink
Expert
****
Offline Offline

Posts: 319


View Profile
« Reply #16 on: June 05, 2008, 03:48:16 PM »

personally I don't use quotes at all on those commands... if I am doing them via phpMyAdmin and require them then you must use the backquote ( ` ) instead of regular quotes.

Tried the sql with backquotes instead.  Same resulting error statement.

Quote
Dink I was commenting on the difference between create/drop TABLE and create/drop DATABASE - you'll need super to add a database to the MySQL instance I believe.

I can add a database via the mySql section of cPanel.

Quote
I'm sorry but lots as flown around and I'm confused about exactly what is still the trouble... is it still when you click on the Views radio button?

When I try click on the views radio button, then click the 'add' icon, I get the default view name, click ok, then get this error:
Quote
Error: ANY command denied to user 'dink@localhost' for table 'preferences'

Sorry to be such a bother, brother.
Logged

[quote Nutballs]
the universe has a giant fist, and its got enough whoop ass for everyone.
[/quote]
perkiset
Olde World Hacker
Administrator
Lifer
*****
Online Online

Posts: 5142


:sniffle: Humor was so much easier before.


View Profile
« Reply #17 on: June 05, 2008, 04:11:41 PM »

When I try click on the views radio button, then click the 'add' icon, I get the default view name, click ok, then get this error:
Quote
Error: ANY command denied to user 'dink@localhost' for table 'preferences'

Sorry to be such a bother, brother.

Tisn't a bother, my brother from another mother.

AHA, is the word of the day here, I missed the "New" button click...

Here's the code from that portion of the handler:

case 'view':
   $sql = "CREATE VIEW $dbName.$newName AS SELECT * FROM phpmyide.preferences";
   break;
         

When I create the "default" view, I have to "tie it" to something, so I assumed that since phpmyide would be installed (at least at the moment) we could build a view against that database and the preferences table simply so I can "save" the new default view code. See, I actually create a dummy view and save it, then open it and let you edit it. This was the best way to work through a variety of GUI issues.

So I started playing around and had a D'oh moment... I can just select "nothing."

Please try this and I'll implement it immediately (works for me here):
Line 208 of ajax.scriptexplorer.php says

            $sql = "CREATE VIEW $dbName.$newName AS SELECT * from phpmyide.preferences";

change it to:
            $sql = "CREATE VIEW $dbName.$newName AS SELECT 0";

It is the only "CREATE VIEW" line in that code, so there shouldn't be any easy way to screw this up.

Thanks!
Logged

If I can't be Mr. Root then I don't want to play.
dink
Expert
****
Offline Offline

Posts: 319


View Profile
« Reply #18 on: June 05, 2008, 06:24:02 PM »


Please try this and I'll implement it immediately (works for me here):
Line 208 of ajax.scriptexplorer.php says

            $sql = "CREATE VIEW $dbName.$newName AS SELECT * from phpmyide.preferences";

change it to:
            $sql = "CREATE VIEW $dbName.$newName AS SELECT 0";

Done deal.  HoooRaaay.  It workie works now.  Good work   Praise

Quote
so there shouldn't be any easy way to screw this up.

Oh ye of little faith.    ROFLMAO

I just made a cursory check to see that it's working.  I've got a line of extreme thunder-bumpers right over my right shoulder......so I'll be offline for a while.

Thanks again.  Oh, yeah.  You done good.


Logged

[quote Nutballs]
the universe has a giant fist, and its got enough whoop ass for everyone.
[/quote]
thedarkness
Global Moderator
Lifer
*****
Offline Offline

Posts: 580



View Profile
« Reply #19 on: June 05, 2008, 08:05:43 PM »

Sorry if I sold you a red herring Dinker.

Cheers,
td
Logged

"I want to be the guy my dog thinks I am."
 - Unknown
perkiset
Olde World Hacker
Administrator
Lifer
*****
Online Online

Posts: 5142


:sniffle: Humor was so much easier before.


View Profile
« Reply #20 on: June 05, 2008, 08:39:09 PM »

Sorry if I sold you a red herring Dinker.

Dude you're the juice. No worries ever at Perk's house.
Logged

If I can't be Mr. Root then I don't want to play.
dink
Expert
****
Offline Offline

Posts: 319


View Profile
« Reply #21 on: June 05, 2008, 11:09:53 PM »

Sorry if I sold you a red herring Dinker.

Cheers,
td

Herring being one of my very fav baits for fresh water striped bass == no worries.  It's all good.

As always, thanks for your help.  I need it a lot.
Logged

[quote Nutballs]
the universe has a giant fist, and its got enough whoop ass for everyone.
[/quote]
dink
Expert
****
Offline Offline

Posts: 319


View Profile
« Reply #22 on: June 05, 2008, 11:27:54 PM »

I think we have gotten past the major problem that started this thread.  I still have an issue with permissions, but think we would be better served if I start a new support thread for that.

All in favor?

The eyes have it. Cool.    ROFLMAO
Logged

[quote Nutballs]
the universe has a giant fist, and its got enough whoop ass for everyone.
[/quote]
Pages: 1 [2]
  Print  
 
Jump to:  

Perkiset's Place Home   Best of The Cache   phpMyIDE: MySQL Stored Procedures, Functions & Triggers
Politics @ Perkiset's   Pinkhat's Perspective   
cache
mart
coder
programmers
ajax
php
javascript
Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS!