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

RedHat / CentOS

MariaDB – Remove repeated words in string

2023-05-252023-05-25 adminLinux, MariaDB, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 虛擬機. 欄位資料為 ‘ABC12 , C2CC , ABC12 , C2CC , DD23’ 這樣有辦法移除重覆出現在單字嗎? 目前看到一個方式 – https://stackoverflow.com/question […]

Read more

MariaDB – Thread Pool

2023-05-182023-05-18 adminLinux, MariaDB, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 虛擬機. 預設在 SQL 使用上單一個 connect 只能使用單個 Thread,如果是比較複雜的指令的時候就會變慢. 參考文章 – https://mariadb.com/kb/en/thread-pool-in-mariadb/ 我們是可 […]

Read more

MariaDB – Condition Group

2023-05-162023-05-17 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 虛擬機. 在 Group 資料時可以使用 IF 判斷式來決定使用哪個欄位,看一下下面範例. 建立測試用資料表. 檢視一下資料. 在 Group 資料時用 IF 判斷式來決定使用哪個欄位 程式說明: 最主要就是在 GROUP BY 時加上判斷式 IF(Fil […]

Read more

MariaDB – String Split using CTE

2023-05-112023-05-24 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 虛擬機. 有辦法在單一欄位的資料依據分隔字元將字串拆解成陣列嗎? 如: 依據分隔字元 ‘ , ‘ 將以上字串拆解成以下陣列. MyaSQL / MariaDB 找不到相關函數 ( PostgreSQL 有相關 string_to_a […]

Read more

MariaDB – Count the number of occurrences of a string

2023-05-102023-05-10 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 虛擬機. 有辦法計算字串 (如: This is MySQL , Mysql is Database) 裡面的字 (如: MySQL) 出現幾次嗎? 找不到相關函數.不過找到一個方式,參考文章 – https://www.tutorialspo […]

Read more

Linux – Systemd Service Type (Auto Restart Program)

2023-03-312023-03-31 adminLinux, RedHat / CentOS

Loading

透過自己寫 Systemd Unit Files 方式來取代傳統的 (crontab) cron table 來啟動程式,執行一段時間卻發生程式莫名死掉了. 下面使用的 systemd 設定檔可以避免這個問題. 測試環境 CentOS 8 x86_64 (虛擬機) 程式如下.寫了一支會定期 60 秒 […]

Read more

Linux command – auditctl & ausearch

2023-03-312023-03-31 adminLinux, RedHat / CentOS

Loading

透過自己寫 Systemd Unit Files 方式來取代傳統的 (crontab) cron table 來啟動程式,執行一段時間卻發生程式莫名死掉了. 我們可以利用 Linux 指令 auditctl & ausearch 來監控是被誰殺掉 kill 了. 測試環境 CentOS 8 […]

Read more

Python – Robot Framework + pabot

2023-03-242023-03-24 adminLinux, Python, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 (虛擬機) 透過 Robot Framework 做自動化跟一般透過 Python 套件來做的差別在於不懂 Python 程式的人也可以使用,只要會編寫 Robot Framework 設定檔就可以跑自動化測試. 但是我們可以透過 Robot Framew […]

Read more

Python – Robot Framework + SSHLibrary

2023-03-162023-03-22 adminLinux, Python, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 (虛擬機) 透過 Robot Framework 做自動化跟一般透過 Python 套件來做的差別在於不懂 Python 程式的人也可以使用,只要會編寫 Robot Framework 設定檔就可以跑自動化測試. 但 Robot Framework 有支援 […]

Read more

Python – Pexpect 套件

2023-03-152023-03-15 adminLinux, Python, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 (虛擬機) Pexpect 使用上蠻像之前常用的 TeraTerm Marco – https://benjr.tw/20386 , 透過 Pexpect 套件可以跟其他程式互動,基本上就3個動作 呼叫程式. 等待程式關鍵字. 傳送字串. 安裝 […]

Read more

文章導覽

較舊的文章

近期文章

  • MariaDB – Remove repeated words in string
  • Python
  • MariaDB – Thread Pool
  • MariaDB – Condition Group
  • MariaDB – String Split using CTE

近期留言

  • 「MMM」於〈Windows – Fio〉發佈留言
  • 「UQA」於〈Linux – EFI 的磁碟分區〉發佈留言
  • 「[mysql] | 飛狼實驗室[wp]」於〈MariaDB 資料庫 – 使用者密碼〉發佈留言
  • 「菜单加密码」於〈Windows command – BCDEdit〉發佈留言
  • 「N/A」於〈Linux – iperf (Bind to host)〉發佈留言

分類

其他操作

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