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 – 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

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

Linux – Apache ProxyPass & ProxyPassReverse

2021-12-032021-12-03 adminLinux, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 因為我的工作環境有兩個網段,其中 172.16.0.x 有一台 Web Server (172.16.0.2) ,從 10 網段的人無法與其相連,這時候可以透過 2 種方式. Apache ProxyPass & ProxyPassReverse […]

Read more

Linux – NAT Port Forwarding

2021-12-032024-08-28 adminLinux, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 因為我的工作環境有兩個網段,其中 192.168.31.0/255.255.255.0 的 IP 透過 NAT( 192.168.31.133 ) 轉出去,但目前有一台 web server 放在 192.168.31.131 環境,從 192.168.8 […]

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.