Resetting lost MySQL root password in Mac OS
If you have installed MySQL on your Mac and forgot your root password, these instructions are for you.
If you have installed MySQL on your Mac and forgot your root password, these instructions are for you.
To shutdown:
sudo shutdown -h now
To restart
sudo shutdown -r now
The Mac OS keyboard does not have a print screen button. So this is how to capture your screen on Mac:
The screen shot would appear on your desktop.
You can also do a screen capture for a portion of your screen.
Easy.
It is now common for users to work with multiple monitors. Laptop users, especially, prefer to work on their laptop screen and an external monitor when at they at work or at home. If you are using netflix or some other service to download movies, you would prefer to watch it on large screen rather than your laptop screen, so you would want to connect your computer to a TV or projector.
It is very easy to connect Mac OS computers to external monitors.
Homebrew is a package manager for Mac OS.
In a terminal, type the following code
xcode-select --install
Run the following command
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew search Search for an application:
Mac terminal shows the wrong hostname on prompt.
Find out if a hostname is already specified.
$ sudo scutil --get HostName
HostName: not set
To set your Hostname
$ sudo scutil --set HostName 'myname'
Exit out of your terminal and start a new terminal. You should see your chosen hostname.
A version control system keeps track of changes in code. It keeps track of every change made by every developer. It allows code bases to be branched and then merged back. You can also go back in time to a point before you introduced something in the code. Version control is absolutely essential for software development.
Following is a list windows commands and their mac equivalents:
Your host file enables your system to override the DNS setting for a domain. This change only affects your system.
The syntax of a host file entry is as follows
# this is a comment
192.168.22.22 molecularsciences.org
Basically you specify an IP followed by a domain. All lines beginning with # sign are comments.
Host files should only be edited with plain text editors like notepad, notepad++, sublime, etc. Following are the locations of host files on different systems:
MongoDB is document based NoSQL database. This means that:
What are the benefits of using MongoDB?
Installing MongoDB on Mac with Homebrew