Installing MySQL Query Browser 1.1.20 on a local Windows-based, Apache, server
First, we'll need to download a copy of the latest version from http://dev.mysql.com/downloads/query-browser/ At the time of this writing, that is version 1.1.20. The Windows, x86, version is just over 5 MB, for a MSI file. Once the file has downloaded, open it.
When you're presented with the license agreement, read through it and accept to continue. You may as well keep the installation path as the default of C:\Program Files\MySQL\MySQL Query Browser 1.1\, unless you've installed the Administrator tool to a different location.
For Setup Type, select either Complete or Custom. There's only one option, so there's not a real big difference. I'll select Custom. The Browser will take a little over 10 MB of space, once installed; certainly not a big deal.
Finally, press Install, followed by Finish, once the installation is done; it won't take long.
At this point, you may want to create a shortcut to the Browser, in your /home/ directory, as you may have done for the Administrator tool. Another alternative is to create a shortcut to the MySQL System Tray Monitor, which will allow you to launch either of the two tools from the tray.
Once you’ve done this, or not, start MySQL Query Browser. You can find it either in the installation directory, or in the Start menu, under MySQL. When you start Query Browser up, you’ll be asked to supply some information.
Server Host: localhost
Password: (your password)
Default Schema: (leave blank)
You'll be warned that you should choose a default schema, but let's just Ignore that for the moment.
Since you haven't selected a default schema, you'll have to select a schema from the schemata area. Double click on any of the available schemata. Once you do this, the schema will be bold.
Now that you've selected a schema, you can run a query on the tables to produce some results. If you haven't already used tables, we can quickly create, and then delete, a table to show how this works.
The following query will create a test table.
CREATE TABLE IF NOT EXISTS TestDatabase (
TestColumn1 varchar(100) default '',
TestColumn2 int(10) NOT NULL auto_increment,
PRIMARY KEY (TestColumn2)
Enter this code, and press Execute. In the bottom left corner, you'll see that your query returned no results. In addition, it doesn't look like the database had a table added to it. Right click on the database you've selected, and select Refresh. Your test table will now display.
You can now run a select on the table, which won't display any rows, but will display the column names.
Finally, we'll remove the table by running the following query.
DROP TABLE TestDatabase
While no results will be returned, the query will run, and a refresh on the database will show that the table no longer exists.
And with that, you've got a new way to run queries on your tables, without creating an application file in PHP or ColdFusion.
Support This Site
If my blog was helpful to you, then please consider visiting my Amazon Wishlist.