Friday, July 10, 2015

How to debug Grails version greater than 2.4.4 in Intellij


Add the following to VM Options of the run configurations (locate the installation of grails)        
 -javaagent:/Users/<username>/.gvm/grails/2.5.0/lib/org.springframework/springloaded/jars/springloaded-1.2.3.RELEASE.jar  
 -Xverify:none  

Tuesday, March 17, 2015

Solved: MySQL Issue Connection using old (pre-4.1.1) authentication protocol refused.

The following error occured when run `mysql` from the terminal to connect to a server.

mysqldump: Got error: 2049: Connection using old (pre-4.1.1) authentication protocol refused (client option 'secure_auth' enabled) when trying to connect
ERROR 2049 (HY000): Connection using old (pre-4.1.1) authentication protocol refused (client option 'secure_auth' enabled)

Solution:
Add `--skip-secure-auth` to the end of the statement

Example:
mysql -h HostName -u UserName -pPassword DbName --skip-secure-auth

Wednesday, January 28, 2015

IntelliJ - the intelligent and best IDE for Java Based Projects (such as Grails)

Based on my personal experience, the advantages of using IntelliJ than other IDEs are:

  1. Support for frameworks and languages such as Grails, Groovy (and more)
  2. Support for debugging grails is amazing