Uninstalling MySQL on Mac OS X involves manually removing following directories and files from your drive.
Assuming your MySQL is installed in /usr/local
, perform the following steps:
cd /usr/local
sudo rm mysql
removes the symbolic link to the actual mysql installation. You may be prompted for your administrator’s password at this point.sudo rm -rf mysql-5.1.47-osx10.6-x86/
removes the actual mysql installation. You may have a different version of mysql installed on your system.sudo rm -rf /Library/StartupItems/MySQLCOM
removes the MySQL startup option.rm -rf ~/Library/PreferencePanes/My*
removes preference panes.sudo rm -rf /Library/Receipts/mysql*
sudo rm -rf /Library/Receipts/MySQL*
I was hoping for a much simpler process for cleanly uninstalling MySQL from my system.
Thanks to Rob Allen for this tip: Rob Allen’s DevNotes
One of the best, to the point explanation I found was on stackoverflow.com. Check it out.. Thanks Mike.
Using Spring Framework facilitates good, extensible design by promoting interface driven programming, ease of testing through Inversion of Control and supporting various test frameworks and much more. Integrating Spring in a Struts2 based web application is a logical next step. In this post, we will integrate the Spring Framework in the Struts2 web application started in this post – Starting Struts2 web application development (using Maven2 and Eclipse)
In my previous post, How to integrate Spring Framework with a Struts2 application, I created a simple web application that used Struts2 and Spring. In this post, I am going to extend that application to add persistence logic using JPA (Java Persistence Architecture) and Hibernate.
I am assuming that you are already familiar with the technologies used in this post – Struts2, Spring and Hibernate.
My goal is to create a project that can be used to jumpstart a Struts2, Spring and Hibernate based development. This is not a detailed tutorial for these technologies.
My current development environment (at the time of developing this project) looks like this:
Maven provides many archetypes to generate various types of project skeletons. This blog post explains how to create a custom archetype that is tailor-made for your own situation. We will create an archetype for the Struts2 application.
My current development environment includes:
You need to have a starter project from which new archetype can be created. We can start with the Struts2 application created in the blog post Starting Struts2 web application development (using Maven2 and Eclipse) to create a custom archetype for Struts2 based applications. You can download the zipped source code for this project here.
Mac OS X hides many files and folders (directories) from the Finder, probably for the security reasons. Typically you don’t need to access these folders and shouldn’t mess with them.
Since I install most of my development related tools (JBoss, Apache Maven, MySQL) in /usr/local directory, sometimes I need to access /usr/local folder from the Finder window (for example, setting up Eclipse environment). This can be easily done by pressing command + shift + G (Go To Folder under Go menu) and then typing /usr/local in the popped-up dialog.
When I switched to iMac from Windows, I was frustrated to find out that the Command + Tab key combination on the Apple keyboard switches between different application windows, but not between different windows opened by the same application. For example, I couldn’t use this combination to switch between multiple Firefox windows opened previously.
Of course you can use select the menu Window -> Name of the window, but I prefer to use keyboard shortcuts for a quicker navigation. It was nice to find out that the Command + ` key combination can be used to do just what I was looking for.
Mac OS X keyboard shortcuts is a good place to learn about common Mac OS X keyboard shortcuts.