To install and start MySQL on a mac, run these commands: brew install mysql mysql.server start Useful commands to start and log in. mysql.server stop mysql –version or mysql -V brew info mysql mysql -uroot //to log in. (No password needed). Useful commands within MySQL: show databases; create database <NAME_HERE> mysql -u username -p new_database… Read More »
brew cask install vagrant It is pretty straight forward. Then to install virtualbox, just run: brew cask install virtualbox Create a vagrant folder and then run the init command: mkdir vagrant/ubuntu cd vagrant/ubuntu vagrant init ubuntu/xenial64 The ubuntu/xenial64 option is basically pointing to the vagrant “box” or the OS hosted at vagrantcloud.com. What happens is… Read More »
If you are looking to work with Apache on OSX you have probably been advised to not use the Apache 2.4 pre-installed version because Apply has removed some required scripts, especially in the macOS 10.15 Catalina release. Here are the commands to run to install Apache via brew. First shutdown Apache and unload any scripts.… Read More »
Nodejs is included in the Ubuntu repository by default. This means that if you run: sudo apt install nodejs your terminal screen will be swing into action downloading the current stable release of node. Currently it is v10.19.0. But what if you need another version? What if you need to guarantee a specific version? First… Read More »
Apache is installed and enabled in OSX by default. To confirm and check your version instance, see this. To start it, run this command in terminal: sudo apachectl start Then open up http://localhost on your browser and you should see this: You can also check the threads in Activity Monitor. To find out where this… Read More »
The simplest way is to run: /usr/sbin/httpd -v in a terminal. You should get something like: Server version: Apache/2.4.34 (Unix) Server built: Feb 22 2019 20:20:11 To know where httpd is, you can also run: whereis httpd
Once you have logged in, the command is quite simple. mysql> use db_name; mysql> source file_name.sql;
Opening your favourite application using keyboard shortcuts can save you a lot of time. Saving a second here and a second there starts to build up over time especially considering the amount of time we spend in front of our devices nowadays.On a Mac, you can create keyboard shortcuts to open up your favourite or… Read More »
The importance of learning to breath and breath through your nose.
How natural is natural? Some fascinating ethical and moral conundrums to ponder.