CakePHP Database connection “Mysql” is missing, or could not be created in CakePHP Console SOLVED

Today, I spent some time helping a partner of mine trying to figure out how to enable and use the CakePHP console in Mac OS + XAMPP (Mac OS version of course), so, after searching on the internet what was going on, I realized there was a problem with the unix_socket for MySQL because Mac…

How to compile Java programs by using command line

So, do you need to compile your Java code using the command line? Don’t worry, just follow type command and it will be very easy! // If we are in the root of the application javac -d ./bin -classpath /Applications/eclipse/servers/apache-tomcat-7.0.50/lib/servlet-api.jar src/com/base22/servlets/*.java -d: destination directory. In our example, the packages with bytecode will be generated into…

How to authenticate in a Linux server without password (configuring SSH keys in MAC OS X or any UNIX-like Operating System)

When you need to connect to several servers because you need to share, update or syncronize a set of files, a common situation is authentication process with the server, if you do this several times in a day, it could be a little hard to type or input your password every time that you are…

How to create custom functions on MySQL 5.x

An excellent feature that you could use in MySQL is the posibility of adding custom function and stored procedures. In this article I will explain how to create your own custom functions on MySQL, stored procedures are explained in another post. A stored procedure is a subroutine available to applications that access a relational database…