MySQL Workbench: PHP development helper plugins

In the new MySQL Workbench 5.2.35, a plugin that will be of interest to PHP developers, both experienced and newbies, has been added. The plugin contains a couple of functions that allows you to create PHP code straight out of your current work in the Workbench SQL Editor, ready to be pasted to your PHP program. Copy as PHP Code (Connect to Server) This first plugin will take the parameters from your currently open connection to MySQL and create PHP code to connect to it. $host="p:localhost"; $port=3306; $socket="/var/mysql/mysql.sock"; $user="root"; $password=""; $dbname=""; $con = new mysqli($host, $user, $password, $dbname, $port, $socket) or die ('Could not connect to the database server' . mysqli_connect_error()); //$con->close(); Not a big deal, but saves some typing for getting something going quickly. Copy as PHP Code (Iterate SELECT Results) This ...

MySQL Workbench 5.2.35 GA Available

The MySQL Developer Tools team is proud to announce the next release of it's flagship product, MySQL Workbench, version 5.2.35. This is the next maintenance release containing 29 bug fixes as well as new feature additions. We also updated the supported platforms to include most recent editions of Fedora and Ubuntu Linux. MySQL Workbench 5.2.35 now supports the Native Windows Authentication Method - available in the commercial MySQL server product - and the creation of user accounts utilizing this new authentication method. For the PHP developers out there, Workbench now also comes with a new set of plugins to turn SQL Queries into PHP code to be put right into your scripts. A big "Thank You" again to everyone for the large amount ...

MySQL Workbench, Windows XP and SSH public key auth.

It happens that sometimes you need to access a remote box which supports ssh key authentication. Recently I was trying to reproduce a bug related to SSH public key authentication, so here I would like to share some of my experience. There will be no explanation of the public key authentication itself here, rather the actual setup and steps to have a public key auth for Windows(client) -> Linux(server) working. Why Windows you would ask? Because interactions for Linux->Linux and for Mac OS X -> Linux simply work using the Unix way, while for Windows you may need some extra actions to do.   Setup What I had at endpoints: Linux - Ubuntu 11.04, sshd is set up to deny password auth. Windows - well, it ...

Quick help for an upgrade problem

With the just released version 5.2.34 we also changed the python version used in MySQL Workbench (to 2.7). However, this produces a problem when upgrading from 5.2.33. The reason is that the installer leaves all the compiled python files (*.pyc) in the installation folder. On next load of Workbench you can't even get beyond the splash screen. We will soon publish a new release with that problem fixed. In the mean time simply uninstall Workbench before you install 5.2.34. Your stored connections, starters, settings etc. are not touched by this. Make sure that you remove any remaining file once uninstallation finished, before you install 5.2.34. This problem was first encountered on Windows using the msi package, but might also affect the zip ...

MySQL Workbench 5.2.34 GA Available

The MySQL Developer Tools team is pleased to announce the next release of it's flagship product, MySQL Workbench, version 5.2.34. This is a maintenance release containing 100 bug fixes; ranging from stability improvements on all supported platforms - including some that prevented startup in certain environments - to minor but significant usability corrections. As always, we want to thank everyone for the great feedback we have received. This helps us to continuously improve the functionality and stability of MySQL Workbench - we appreciate all your ideas for improving MySQL Workbench.  Please keep sending us your ideas! MySQL Workbench 5.2 GA Data Modeling Query (replaces the old MySQL Query Browser) Administration (replaces the old MySQL Administrator) Please get your copy from our Download site. Sources and binary ...

MySQL Workbench 5.2.33 GA Available

The MySQL developer tools team announces the next release of it's flagship product, MySQL Workbench - version 5.2.33. This is a maintenance release only which corrects some problems we didn't cover in last release. It contains fixes for 7 bugs or enhancement requests. As always, we want to thank everyone for the great feedback we have received. This helps us to continuously improve the functionality and stability of MySQL Workbench - we appreciate all your ideas for improving MySQL Workbench.  Please keep sending us your ideas! MySQL Workbench 5.2 GA Data Modeling Query (replaces the old MySQL Query Browser) Administration (replaces the old MySQL Administrator) Please get your copy from our Download site. Sources and binary packages are available for several platforms, including Windows, Mac OS ...

MySQL Workbench 5.2.32 GA Available

We're proud to announce the next release of MySQL Workbench, version 5.2.32. This is a maintenance release featuring a new and improved UI appearance and several corrections and other enhancements. The tabbed interface has been refreshed to obtain a clearer separation between different modules of Workbench, while improving responsiveness when switching between tabs. The Query Formatter has been rewritten and is now faster and more robust on its handling of queries. The layout of the Administration module has been changed to allow for easier future expansion and use less vertical screen space. Parts that had problems managing MySQL 5.5 servers have been fixed along other total of 53 bugs or enhancement requests have been addressed. As always, we want to thank everyone for ...

Workbench and MySQL server at non-standard location in Linux.

Recently I had to test MySQL Workbench against fresh version of the server. Naturally, the default mysql-server was already installed from repository of my Linux distro. So I installed the latest server version into my /opt/server directory. And then I had several points to resolve, for example, how to start detached server process from Workbench Adminstrator; how to detect if the server is running or not, given that there are many of them running; how to stop the server. Now I will show several workarounds to perform tasks listed in the previous paragraph. Below are the commands I put into Server Instance Editor, there are corresponding text entries labeled: 'Start MySQL', 'Stop MySQL', 'Check MySQL Status': - Staring server - (nohup /opt/server/5.5.9/bin/mysql_safe ...

MySQL Workbench: Manage MySQL on Windows Servers the Windows way

The MySQL team has been continuously improving its products on the Windows platform. Along this line, we've responded to a request from our users of Workbench on Windows - to provide remote access to Windows Servers using Windows management methods - as an alternative  to SSH. Managing a MySQL server obviously requires access to the target machine, which usually requires elevated rights for certain tasks like restarting the server or manipulating the configuration file on Windows (where this file is in a protected path). For local connections this is mostly not a big deal. However for remote boxes security measures prevent easy manipulation of such essential things like server processes. In this blog post we discuss native Windows management and how it ...

MySQL Workbench: Introducing Utilities

MySQL has the well earned reputation for ease-of-use and "15-minutes-to-success", since we continually focus making the server easy to use. MySQL Workbench provides the visual tools for database design, development, and administration. However, many DBAs prefer using the command-line, and there are many tasks that require the creation scripts for doing the job. To make it easier to work with the server, the latest release of the MySQL Workbench—version 5.2.31—contain a set of Python scripts intended to make the life easier for DBAs by providing easy-to-use utilities for common tasks, which were introduced in the blog MySQL Workbench: Utilities. The set currently consists of just a few utilities, but will expand over time. The utilities available in the Workbench ...