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

Mysql

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

MariaDB – SUM JSON Array

2022-11-032022-11-03 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 X86_64 (虛擬機) 在資料庫一個欄位儲存了 JSON 的陣列 Array [ 0.89, 12.99, 5.23, 2.04 ] 有辦法作加總嗎? 從網路找到寫好的 JSON 陣列加總函數 Function – https://stackoverflo […]

Read more

Excel Power Query + VBA – 寫入 ODBC ( MySQL )

2022-10-142022-10-25 adminMysql, Power Query, VBA, Windows

Loading

前面一篇利用 ODBC 讓 Excel 讀取資料庫的資料 – https://benjr.tw/104821 , 那可以把 Excel 資料回寫到資料庫嗎? 可以利用 VBA 的功能來做到. 參考文章 https://www.youtube.com/watch?v=VRm8tUerrZU […]

Read more

MySQL Community

2022-10-122022-11-03 adminMysql, Windows

Loading

測試環境 Windows 10 + MySQL Community Server 8.0.31 Visual Studio Windows 須先安裝 visual studio 2019 x64 redistributable 下載點 – https://learn.microsoft.com/en […]

Read more

Excel Power Query – ODBC ( MySQL )

2022-10-072022-10-17 adminMysql, Power Query, Windows

Loading

Excel 的 Data Source 支援多種來源, 除了從檔案外還支援 ODBC 如 MySQL 等資料庫來源 ,下面就來看一下要怎麼從 Excel 同步 (synchronization) 資料庫的資料. 參考文章 https://www.youtube.com/watch?v=VRm8tUe […]

Read more

SQL 語法 SELECT LIKE

2022-09-132022-09-13 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

SQL 語法 SELECT 的字串比對 (需注意資料庫字元編碼 Character Sets 與 文字排序 Collations ,請參考資料庫編碼 – https://benjr.tw/102156 ) 測試環境為 CentOS 7 x86_64 (虛擬機) LIKE 通常會搭配 % […]

Read more

MariaDB – max_allowed_packet size

2022-04-272023-09-11 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 遇到一個奇怪問題, LONGBLOB , LONGTEXT 字元上限為 4 GB (2^32 -1),使用 4 bytes 紀錄前面字元使用長度.但是實際使用只能到 16777216 (約 16M),下面來看一下是怎麼了. 先建立一個資料庫 (testdb […]

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.