I recommend bellow command:
watch -n 5 free -m
Here is an utility program called "automysqlbackup" that is available in the Ubuntu repositories.
sudo apt-get install automysqlbackup
Run the command by typing:
sudo automysqlbackup
/etc/lib/automysqlbackup ls
daily monthly weekly
/etc/lib/automysqlbackup/daily ls
koha_library test
sudo /etc/init.d/mysql stop
sudo mkdir /var/run/mysqld/
sudo chown mysql /var/run/mysqld/
sudo mysqld_safe --skip-grant-tables &
=======
You may promnt something like this… you may have to press the Enter key…koha@ubuntu:~mysqld_safe Logging to syslog.
2017-12-25T16:49:30.554646Z mysqld_safe Logging to '/var/log/mysql/error.log'.
2017-12-25T16:49:30.578079Z mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
2017-12-25T16:49:32.568746Z mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
[1]+ Done sudo mysqld_safe --skip-grant-tables
=======
sudo mysql -u root
use mysql;
mysql> use mysql;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
update user set authentication_string=PASSWORD("Newpassword")
where User='root';
flush privileges; exit
sudo /etc/init.d/mysql stop sudo /etc/init.d/mysql startTake Koha backupAccess mysql -h 127.0.0.1 -P 3306 -u root -pBackup of Koha_library
mysqldump -u root -p koha_library > koha_library.sql
koha-z3950-responder --enable <instancename> for example library
koha-z3950-responder --start <instancename>
date +%Y%m%d -s "20120418"
Set time from the command linedate +%T -s "11:14:00"
Set time and date from the command linedate -s "19 APR 2012 11:14:00"
Linux check date from command linedate
Will show you something like this:Thu Apr 19 15:17:34 BOT 2012
Set hardware clockhwclock --show
Will output something like this:Thu 19 Apr 2012 03:23:05 PM BOT -0.785086 seconds
Now check the system clockdate
Will output something like this:Thu Apr 19 15:26:41 BOT 2012
Let's set the hardware clock to local time:hwclock --set --date="2012-04-19 16:45:05" --localtime
If you want to set it to UTC time use:hwclock --set --date="2011-04-19 20:45:05" --utc
Reference: https://www.garron.me/en/linux/set-time-date-timezone-ntp-linux-shell-gnome-command-line.html
Login MySQL using mysql -u root -p CREATE USER 'superuser'@'localhost' IDENTIFIED BY 'password'; GRANT ALL PRIVILEGE...