Install sudo apt-get install mysql-server mysql-client Set root user password for localhost sudo mysqladmin -u root -h localhost password ‘urpassword’ Set root user password for anyhost: sudo mysqladmin -u root -h hostname password ‘urpassword’ Open mysql shell mysql -u root -p Allow hosts(machines) to access mysql installed on other machine(login […]
Ubuntu
Commands specific to ubuntu OS.
Ubuntu Firewall
Turn on the firewall ufw enable Turn off the firewall ufw disable Allow all connection by default ufw default allow Deny all connection by default ufw default deny Current status and rule ufw status Allow traffic on port ufw allow port Deny port ufw deny port Block ip address ufw […]
Configure Static IP Address in Ubuntu
You can configure a network adapter of a machine to use a static IP address. To configure static IP address in Ubuntu, you need to edit the /etc/network/interfaces file Open the file with Sudo Option sudo nano /etc/network/interfaces Assuming that the eth1 is the adapter for which static IP address is to be […]