Unix Technical Forum

MySQL Query Browser URL Handler for Windows

This is a discussion on MySQL Query Browser URL Handler for Windows within the MySQL forums, part of the Database Server Software category; --> I got sick of maintaining a number of profiles in MySQL Query Browser, so I wrote a URL handler ...


Go Back   Unix Technical Forum > Database Server Software > MySQL

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 08:48 AM
tgmayfield@gmail.com
 
Posts: n/a
Default MySQL Query Browser URL Handler for Windows

I got sick of maintaining a number of profiles in MySQL Query Browser,
so I wrote a URL handler for it. It takes URLs in the form of
mysql://username[assword]@host[ort]/database, and fires up MySQL
Query Browser for you. You can type that URL in your browser window,
in the Start > Run dialog, in your explorer address bar, whatever.

If you have need of other features (I was thinking about maybe adding a
mysqladmin:// handler for MySQL Administrator) or encounter bugs, let
me know The code assumes you have MySQL GUI Tools installed so that it
can find the location of MySQL Query Browser in the registry, and it
assumes you have access to write a registry key to HKEY_CLASSES_ROOT.

Source, binaries, and instructions are available at
http://tgmayfield.com/projects/mysql/

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 08:48 AM
Mike Lischke
 
Posts: n/a
Default Re: MySQL Query Browser URL Handler for Windows

tgmayfield@gmail.com wrote:

> If you have need of other features (I was thinking about maybe adding
> a mysqladmin:// handler for MySQL Administrator) or encounter bugs,
> let me know The code assumes you have MySQL GUI Tools installed so
> that it can find the location of MySQL Query Browser in the registry,
> and it assumes you have access to write a registry key to
> HKEY_CLASSES_ROOT.


Nice project, indeed. But please not that we recently switched to HKCU,
for security reasons and you also should not write to HKCR. For
compatibility to older versions it would be good, though, if you also
could check HKCR (but not write).

Note: there are several command line options you can use with MA and
QB, e.g. give QB a file name and it will open that file in the script
editor without opening a connection.

Mike
--
www.mysql.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-28-2008, 08:48 AM
Jared
 
Posts: n/a
Default Re: MySQL Query Browser URL Handler for Windows

tgmayfield: Why dont you just logon to no database every time?

Hey Mike,

Noticed you have 45 Query Browser bugs assigned to you. 2 are mine and I
have another 2 waiting to be verified.

Whats the flow like for bug fixing on QB?

Merry X-Mas
Jared


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-28-2008, 08:49 AM
Mike Lischke
 
Posts: n/a
Default Re: MySQL Query Browser URL Handler for Windows

Jared wrote:

> Whats the flow like for bug fixing on QB?


The entire January is planned for QB to make it an RC and maybe even
GA. Depends on what work remains (and also incoming reports for MA).
Windows version is almost in RC state, Linux and OSX versions need more
work yet, but at the end of January we should at least have RCs for all
supported platforms.

Mike
--
www.mysql.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-28-2008, 08:49 AM
tgmayfield
 
Posts: n/a
Default Re: MySQL Query Browser URL Handler for Windows

Mike Lischke wrote:
> Nice project, indeed. But please not that we recently switched to HKCU,
> for security reasons and you also should not write to HKCR. For
> compatibility to older versions it would be good, though, if you also
> could check HKCR (but not write).
>


So you're recommending I find try to find the location of MySQL Query
Browser/MySQL Administrator in HKEY_CURRENT_USER, and if that fails,
hit HKEY_LOCAL_MACHINE? Can do. Is there any place local to the user
to set up a URL/file association other than HKEY_CLASSES_ROOT (so that
it can work for somebody other than an administrator)?

--Thomas

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-28-2008, 08:49 AM
tgmayfield
 
Posts: n/a
Default Re: MySQL Query Browser URL Handler for Windows

tgmayfield wrote:
> Mike Lischke wrote:
> > Nice project, indeed. But please not that we recently switched to HKCU,
> > for security reasons and you also should not write to HKCR. For
> > compatibility to older versions it would be good, though, if you also
> > could check HKCR (but not write).
> >

>
> So you're recommending I find try to find the location of MySQL Query
> Browser/MySQL Administrator in HKEY_CURRENT_USER, and if that fails,
> hit HKEY_LOCAL_MACHINE? Can do. Is there any place local to the user
> to set up a URL/file association other than HKEY_CLASSES_ROOT (so that
> it can work for somebody other than an administrator)?
>
> --Thomas


Never mind. Just found HKCU\Software\Classes. I'll make those changes.
Anything else you'd like to see?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-28-2008, 08:49 AM
Mike Lischke
 
Posts: n/a
Default Re: MySQL Query Browser URL Handler for Windows

tgmayfield wrote:

> Never mind. Just found HKCU\Software\Classes. I'll make those changes.
> Anything else you'd like to see?


Hmm, make sure to put private data into the application data folder for
that user, not in the "Program Files" subfolder of your application.
This is a bad habit of some software we should finally get rid of (I
know that the server puts its my.ini file in the installation folder,
this must yet be changed).

Mike
--
www.mysql.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-28-2008, 08:49 AM
tgmayfield
 
Posts: n/a
Default Re: MySQL Query Browser URL Handler for Windows


Mike Lischke wrote:
> tgmayfield wrote:
>
> > Never mind. Just found HKCU\Software\Classes. I'll make those changes.
> > Anything else you'd like to see?

>
> Hmm, make sure to put private data into the application data folder for
> that user, not in the "Program Files" subfolder of your application.
> This is a bad habit of some software we should finally get rid of (I
> know that the server puts its my.ini file in the installation folder,
> this must yet be changed).
>
> Mike
> --
> www.mysql.com


None of this is ever stored. This isn't a profile handler, to store all
the data for the user. It's a URL handler, to make it so the user can
choose to store their data in an easier format and/or just type in a
simple URL to open a connection. It locates MySQL Query Browser,
disassembles the URL into its component parts, and starts QB with the
proper arguments to open a connection to the database.

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


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:13 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com