remove a item from array in javascript

Posted by: 邱小新 at 下午6:32:00 in

MySQL 備份+還原

Posted by: 邱小新 at 下午3:12:00 in

Command

  • 備份所有資料庫包含資料
    mysqldump -u root -p --all-databases > backup.sql
  • 備份單一資料庫包含資料
    mysqldump -u root -p database_name > backup.sql
  • 備份所有資料庫不含資料
    mysqldump -u root -p --no-data --all-databases > backup.sql
  • 備份單一資料庫不含資料
    mysqldump -u root -p -d database_name > backup.sql
  • 備份單一資料表包含資料
    mysqldump -u root -p database_name table_name > backup.sql
  • 備份多個資料表包含資料
    mysqldump -u root -p database_name table1_name table2_name > backup.sql
  • 復原單一資料庫
    sudo mysql -u root -p database_name < backup.sql
  • 復原所有資料庫
    sudo mysql -u root -p < backup.sql

option

  • --no-data or -d
    只備份Schema不備份資料。
  • --ignore-table
    忽略指定的table。有多個table就多寫幾個

Reference

PHP mail

Posted by: 邱小新 at 下午5:42:00 in

change input date icon

Posted by: 邱小新 at 下午3:06:00 in
input[type=date]::-webkit-calendar-picker-indicator {
	width: 20px;
	height: 20px;
}