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
    • Bash shell script
    • Perl
    • PHP
    • Python
    • Node.JS
    • VBA
    • javascript
    • Power Query
    • PowerShell
  • WordPress
  • DataBase
    • 資料庫安裝
    • 資料庫語法
    • SQLite
    • MariaDB JSON

Database

MariaDB – 資料型別轉換函數

2023-01-072023-01-07 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 虛擬機. CAST 資料型別作轉換. 可轉換型別如下 BINARY , CHAR , DATE , DATETIME , DECIMAL[(M[,D])] , DOUBLE , FLOAT — From MariaDB 10.4.5 , INTEGER , […]

Read more

MariaDB – 指定 char (字元)

2023-01-062023-01-06 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 如要使用到 ASCII 的控制字元,可以用 CHAR 或是 CHR 函數來指定,關於 ASCII 編碼請參考 – https://zh.wikipedia.org/wiki/ASCII 以 ASCII CHAR 07(10進位) 或是 0x07 […]

Read more

MariaDB – 算出與上一筆的差值

2022-12-222022-12-22 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 建立測試用的資料庫 (testdb) 測試用的資料表 (TimeDiff) 資料格式為 T1 TIMESTAMP . 新增等一下要測試的資料. 有辦法算出與上一筆的差值嗎? 可利用 ROW_NUMBER() 建立相對應 Index ,關於建立 Index […]

Read more

MariaDB – group_concat_max_len

2022-12-122022-12-12 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 (虛擬機) group_concat 是有長度的限制,可以透過以下指令查看目前支援的長度為何. 可以透過 SQL Command Line 指令立刻更改,但 MariDB / MySQL 服務重新啟動後就回歸原狀. 要永久生效須改設定檔,在 [mysqld […]

Read more

mysql Display all 1358 possibilities? (y or n)

2022-12-122022-12-12 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 (虛擬機) 我都是透過 Notepad++ 來編輯 MySQL / MariaDB 的 SQL Procedure ,但常常在把 SQL 丟到 SSH 的 SQL command Line 去執行時卻出現以下訊息.有時候這個訊息會讓 Procedure 無 […]

Read more

MariaDB – Remove JSON None (or null) attributes

2022-11-232022-11-24 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 (虛擬機) , MariaDB 10.3.28 要怎麼移除 JSON 格式,值 (Attributes) 為 None (文字) 或是 NULL (空值) 的. JSON 範例. JSON_SEARCH + JSON_REMOVE 先透過 JSON_SEA […]

Read more

Python – 執行 MySQL Stored Procedure

2022-11-232022-11-24 adminLinux, MariaDB, Mysql, Python, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 (虛擬機) , MariaDB 10.3.28 在 Python 中要怎麼去執行 MySQL(MariaDB) 的 Stored Procedure , 參考文章 https://pynative.com/python-mysql-execute-stor […]

Read more

SQL UDF – mysql-udf

2022-11-172022-11-17 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境 CentOS8 – MariaDB 10.3.28 在 SQL Shell 下面是可以直接透過 system 指令去執行 Linux Shell 的程式,不過這個 system 指令基本安全考量才不能使用在 Stored Routines (Procedure , Functi […]

Read more

MySQL – Execute Linux shell command

2022-11-172022-11-18 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境 CentOS8 – MariaDB 10.3.28 SQL Shell 在 SQL Shell 下面是可以直接透過 system 指令去執行 Linux 的 Shell 程式. Stored Routines ( Procedure , Function 或是 Trigger […]

Read more

MariaDB – 忘記 root 密碼

2022-11-172022-11-17 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境 CentOS 8 , MariaDB 10.3.28 忘記 root 密碼了. 重新設定 root 密碼方式,參考文章 – https://www.a2hosting.com/kb/developer-corner/mysql/reset-mysql-root-password […]

Read more

文章導覽

較舊的文章
較新的文章

近期文章

  • Python – Robot Framework + pabot
  • Python – Robot Framework + SSHLibrary
  • Python – Pexpect 套件
  • Python – paramiko 套件
  • Python – List Object Finding duplicates

近期留言

  • 「[mysql] | 飛狼實驗室[wp]」於〈MariaDB 資料庫 – 使用者密碼〉發佈留言
  • 「菜单加密码」於〈Windows command – BCDEdit〉發佈留言
  • 「N/A」於〈Linux – iperf (Bind to host)〉發佈留言
  • 「topvpn」於〈就是要上網 – OpenVPN ( 二) Client〉發佈留言
  • 「zoeyalee」於〈在 WordPress 使用 Facebook 讚的連結〉發佈留言

分類

其他操作

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