Skip to content

Benjr.tw

  • Linux
    • Stress & Performance
    • Hardware Info
    • System Monitor
    • Security
    • Desktop
    • PXE
    • Filesystem Hierarchy Standard
    • Linux 開機選項
    • Linux Package Manager
    • 備份 Backup
  • Virtualization
    • Docker & Podman
    • CoreOS
  • NAS/SAN
  • Programming Language
    • Python
    • Bash shell script
    • Perl
    • PHP
    • Node.JS
    • VBA
    • javascript
    • Power Query
    • PowerShell
  • WordPress
  • DataBase
    • 資料庫安裝
    • 資料庫語法
    • SQLite
    • MariaDB JSON

MariaDB – Correlated Subqueries

2022-03-092022-03-09 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 X86_64 (虛擬機) 怎麼在 GROUP 時,找到 第二,三 … 的值. 先建立一個資料庫 (testdb) , 與 tables (employee) 格式為 Name char(20), Dept char(20), jobTitle char(20 […]

Read more

MariaDB – LIMIT row_count OFFSET offset

2022-03-092022-03-09 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 X86_64 (虛擬機) 要找出最大值的時候可以透過 MAX 或是 LIMIT 1,但是要找第二,三 … 的值呢? 可以透過 LIMIT 先建立一個資料庫 (testdb) , 與 tables (Employee) 格式為 ID INT(11) 以及 Sa […]

Read more

MariDB – SOUNDS LIKE

2022-03-092022-03-09 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 X86_64 (虛擬機) SOUNDS LIKE 可以用來比對發音很像的字串. 先建立一個資料庫 (testdb) , 與 tables (employee) 格式為 Name char(20), Dept char(20), jobTitle char(20) 各 2 […]

Read more

MariDB – Logging

2022-02-252022-02-25 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 (虛擬機) . 關於 MariaDB 的 Logging 參考文章 – https://betterstack.com/community/guides/logging/database/how-to-start-logging-with-ma […]

Read more

MariaDB – Time Zone

2022-02-242022-02-24 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 (虛擬機) . 遇到一個奇怪的問題,在不同機器上使用 UNIX_TIMESTAMP(TS) 函數 (該函數功能為把時間轉換成為數字,轉換方式為: 指定的時間 -(減去) 1970-01-01 00:00:00 得到的秒數差, 回傳為無符號整數) 卻得到不同 […]

Read more

MariaDB – ORDER BY CASE

2022-02-152022-12-12 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 SELECT 資料可以依據藍未來排序 ORDER BY Column,但是我想要依據某欄位內的特定字串來排序,這樣有辦法嗎?可以透過 ORDER BY CASE 來做. 先建立測試要用的資料庫. 建立測試用資料表. 新增使用者與其測試資料. 檢視一下資料. […]

Read more

HTTPs – Let’s Encrypt

2022-02-092022-04-27 adminLinux, Ubuntu

Loading

測試環境為 Ubuntu 20.04 x86_64 + Apache2 (虛擬機平台 Linode) 主要要幫 https://benjr.tw (WordPress) 改成為 https://benjr.tw , 什麼是 https(http with SSL+CA) 可以參考 – h […]

Read more

MariaDB 函數 – JSON_QUOTE , JSON_UNQUOTE

2022-02-082022-02-08 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 JSON 有保留字元,可以直接用以下函數來轉換. \” Double quote (“) \b Backslash \f Formfeed \n Newline (linefeed) \r Carriage return \t Ta […]

Read more

Linux command – strace

2021-12-102021-12-10 adminLinux, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 Linux 指令 strace (trace system calls and signals) 用來檢視程式 (Process) 執行時會呼叫那些系統函式庫(system library). -p pid : 可以依據程式的 PID 來檢視呼叫那些系統函 […]

Read more

Linux – Enable packet forwarding

2021-12-082021-12-08 adminLinux, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 不知道什麼時候 IPv4 預設 IP Forwarding 變成啟動 的 Enable (1). 或是檢視別網路裝置的 IP Fordwarding . 或是透過 sysctl 指令來查看 手動變更 透過 sysctl 指令可以手動變更. Note : I […]

Read more

文章導覽

較舊的文章
較新的文章

近期文章

  • Windows – Network Sharing + Port forwarding to VM
  • Ansible – gather facts
  • Ansible – host_vars 定義特定的變量
  • Ansible 範例 – Chrony daemon
  • Ubuntu NTP Client 校時設定

近期留言

  • 「Jackson2734」於〈Ubuntu NTP Client 校時設定〉發佈留言
  • 「w」於〈Ubuntu 16.04 Server PXE 安裝〉發佈留言
  • 「admin」於〈TCP/IP 常見封包〉發佈留言
  • 「stu」於〈TCP/IP 常見封包〉發佈留言
  • 「student」於〈Linux command – tcpdump〉發佈留言

分類

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文
  • Privacy Policy
  • 隱私權政策
Powered by WordPress | Theme: Astrid by aThemes.