How to Configure MySQL Master-Slave Replication on Ubuntu Linux

  Master Server Configuration Install MySQL Server: sudo apt-get install -y mysql-server Add the following to /etc/mysql/my.conf: bind-address = 10.11.12.101 server-id = 1 log_bin = /var/log/mysql/mysql-bin.log Restart MySQL: sudo service mysql restart Create a replication user: mysql -u root CREATE USER ‘repl’@’%’ IDENTIFIED BY ‘slavepassword’; GRANT REPLICATION SLAVE ON *.* TO ‘repl’@’%’; exit Create a … Read more

Want to Quickly Recall the Last Word or Last Argument from the Previous Command Line? Here’s How.

Time and time again I find myself needing to run another command against the last item on the previous command line. To access that item in your current command, use “!$“. When I’m done with a file, I delete it, as in this example. jason@linuxsvr:~$ mkdir restored jason@linuxsvr:~$ cd !$ cd restored jason@linuxsvr:~/restored$ unzip ~/Downloads/backup.zip … Read more