Skip to content

Benjr.tw

  • Linux
    • Stress & Performance
    • Hardware Info
    • Hardware Monitor
    • Security
    • Desktop
    • PXE
    • Filesystem Hierarchy Standard
    • Linux 開機選項
    • Linux Package Manager
    • 備份 Backup
  • Virtualization
    • Container & Docker
    • CoreOS
  • NAS/SAN
  • Programming Language
    • Bash shell script
    • Perl
    • PHP
    • Python
  • WordPress
  • DataBase
    • 資料庫安裝
    • 資料庫操作

RedHat / CentOS

MaraiDB – Equals(=) vs. LIKE

2021-02-252021-02-26 adminLinux, MariaDB, Mysql, RedHat / CentOS

測試環境為 CentOS 8 x86_64 遇到一個奇怪的問題,當使用 Equals(=) 與 LIKE 來比對字串 String ”(空字串) 與 ‘ ‘ (空白字串) ,卻得要不一樣的結果. 查了一下論壇 – https://stackoverfl […]

Read more

Linux – NTP ( Network Time Protocol )

2021-02-092021-02-09 adminLinux, RedHat / CentOS

CentOS 8 x86_64 預設 chronyd 為 NTP 服務,請參考 – http://benjr.tw/102661 測試作業系統 CentOS 7 x86_64 (虛擬機) Linux 可以透過 NTP ( Network Time Protocol ) 來矯正時間. 啟動 […]

Read more

Linux – Convert CSV to JSON

2021-01-132021-01-14 adminLinux, MariaDB, Mysql, RedHat / CentOS

測試環境為 CentOS 8 x86_64 在 Linux 下有辦法把 CSV (每筆資料用 “,” 做區分) 轉成 JSON 格式嗎? 轉換後的 JSON 儲存在資料庫要怎麼存取資料? Convert CSV to JSON 找到下面兩種方式. jq : jq is a lightweight a […]

Read more

Linux command – firewall-cmd

2020-12-152020-12-15 adminLinux, Network, RedHat / CentOS

測試環境為 CentOS 8 x64 (虛擬機 ) 現在可以用 firewall-cmd 指令來改 防火牆設定. 參考文章 – https://blog.gtwang.org/linux/centos-7-firewalld-command-setup-tutorial/2/ 啟動防火牆 […]

Read more

MariaDB – Slave Error

2020-12-092020-12-09 adminLinux, MariaDB, Mysql, RedHat / CentOS

使用主從式資料庫 (Master Slave Replication) 的技術. Master 的資料庫會透過 Binlog 的機制將資料同步到 Slave . Master 不是真的會把資料複製一份到 Slave,而是 Master 會把所有會變動到資料的指令儲存到 Binlog ,其中包含 CR […]

Read more

SQL CHECK CONSTRAINT

2020-12-032020-12-03 adminLinux, MariaDB, Mysql, RedHat / CentOS

測試環境為 CentOS 8 x86_64 CHECK CONSTRAINT 可以檢查輸入資料是否符合預期,避免儲存成錯誤的資料,我們可以在建立欄位 ( CREATE TABLE ) 時就先設定好,或是之後可以透過 ALTER TABLE 來修改或新增. Constraint 的類型如下. PRIM […]

Read more

MariaDB 資料庫 – JSON_CONTAINS 函數

2020-11-152020-11-15 adminLinux, MariaDB, Mysql, RedHat / CentOS

測試環境為 CentOS 8 x86_64 使用關聯式資料庫( RDBMS : Relational Database Management System )的 MariaDB 也可以儲存與查詢 NoSQL ( Not Only SQL : 使用非關聯式資料庫的資料庫,資料儲存不需要固定的欄位 ) […]

Read more

MariaDB 資料庫 – JSON_QUERY , JSON_VALUE 以及 JSON_EXTRACT 函數

2020-11-092020-11-09 adminLinux, MariaDB, Mysql, RedHat / CentOS

測試環境為 CentOS 8 x86_64 使用關聯式資料庫( RDBMS : Relational Database Management System )的 MariaDB 也可以儲存與查詢 NoSQL ( Not Only SQL : 使用非關聯式資料庫的資料庫,資料儲存不需要固定的欄位 ) […]

Read more

MariaDB 資料庫 – 使用 Nested Object 的 JSON

2020-11-062020-11-09 adminLinux, MariaDB, Mysql, RedHat / CentOS

測試環境為 CentOS 8 x86_64 這邊有 JSON 無使用 Nested Object 簡單版可以參考 – http://benjr.tw/103200 使用關聯式資料庫( RDBMS : Relational Database Management System )的 Mar […]

Read more

MariaDB 資料庫 – JSON

2020-11-062020-11-09 adminLinux, MariaDB, Mysql, RedHat / CentOS

測試環境為 CentOS 8 x86_64 使用關聯式資料庫( RDBMS : Relational Database Management System )的 MariaDB 也可以儲存與查詢 NoSQL ( Not Only SQL : 使用非關聯式資料庫的資料庫,資料儲存不需要固定的欄位 ) […]

Read more

文章導覽

較舊的文章

近期文章

  • MaraiDB – Equals(=) vs. LIKE
  • Linux – NTP ( Network Time Protocol )
  • Linux – Convert CSV to JSON
  • Linux command – firewall-cmd
  • MariaDB – Slave Error

近期留言

  • 「Wordpress 小小整理文 – 這世上 沒有偶然 只有必然」在〈WordPress – 檔案權限設定(1)〉發佈留言
  • 「aece」在〈Windows – OpenSSH Server〉發佈留言
  • 「Oscar」在〈TeraTerm – Macro〉發佈留言
  • 「[HAProxy] 建立 WordPress 負載平衡 Load balancing 架構筆記 | 一介資男」在〈HAProxy 負載模式〉發佈留言
  • 「sheldon13」在〈IPMI IOL (IPMI Over Lan)〉發佈留言

分類

其他操作

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