因為覺得有趣,就順便記錄下來,免得只剩下「一個轉身」的記憶把它遺忘了。
https://zws.im//
https://zws.im//
參考文章及網址:
- https://stackoverflow.com/questions/6907297/can-utf-8-contain-zero-byte#
- https://www.ifreesite.com/unicode-ascii-ansi.htm
網友文章出處:
https://zws.im//
https://zws.im//
千萬不要這麼做
# rm -rf mysql-bin.000001 (X, 錯誤做法)
你應該由 mysql 去控制/刪除這些檔
刪除單一檔的指令是 : PURGE BINARY LOGS TO 'mysql-bin.000001’;
刪除 7 天前的檔案指令是:PURGE BINARY LOGS BEFORE DATE(NOW() - INTERVAL 7 DAY) + INTERVAL 0 SECOND;
自動刪除7天前的 log,那麼請在你的 my.cnf 加入 expire-logs-days=7
沒有replication,建議可以取消 log-bin
#log-bin=mysql-bin
mysql command line client against your original mysql container, allowing you to execute SQL statements against your database instance:$ docker run -it --link some-mysql:mysql --rm mysql sh -c 'exec mysql -h"$MYSQL_PORT_3306_TCP_ADDR" -P"$MYSQL_PORT_3306_TCP_PORT" -uroot -p"$MYSQL_ENV_MYSQL_ROOT_PASSWORD"'
$ docker run -it --link <container_name>:<image_name> --rm <image_name> sh -c 'exec mysql -h"<container_ip_address>" -P"<mysql_port_number>" -u"<mysql_username>" -p"<mysql_password>"'
git config --global core.quotepath false
git config --global gui.encoding utf-8
git config --global i18n.commit.encoding utf-8
git config --global i18n.logoutputencoding utf-8
set LESSCHARSET=utf-8
Postman 是用來測試 Web Service 方便的工具,在法蘭克還不認識它之前,要測試自己撰寫的 Web Service 都要用 HTML 刻一個表單,然後放上許多 input 的元件並且一個一個填入參數去 Call API,過程可說是相當麻煩,但是自從知道 Postman 後,就再也沒有自己刻過表單了。Postman 是 Chrome 的應用程式並可在 Chrome Web 商店找到它。今天就來介紹利用 Postman(Client端) 呼叫 TOS - ESB (Server端) 的一些基本功能並找兩個範例來實作,當然 Server 並非一定要跟法蘭克一樣是使用 TOS - ESB,也可是政府開放平台或公司後台的 API。
Copyright © 2010 Learning in free | Blogger Templates by Splashy Templates
Css Designed by Hot Website Templates