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
    • 資料庫安裝
    • 資料庫操作

admin

MariaDB 資料庫 – 使用者密碼

2020-10-212020-10-21 adminLinux, MariaDB, Mysql, RedHat / CentOS

測試環境為 CentOS 8 x86_64 建立使用者 建立使用者 user1@localhost . CREATE USER 使用參數: ‘user1’@’localhost’ , user1 – 新增的使用者, localhost – 限制可從哪裡 […]

Read more

SQL 語法 SELECT Record with Maximum Value on a Column

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

如何找到資料特定欄位中最大 Maximum 的一筆資料. 測試環境為 CentOS 8 x86_64 (虛擬機) 先建立一個測試用資料庫 (testdb) , 與 tables (employee) 格式為 K1 int(11) – auto_increment & PRIMA […]

Read more

Windows / Linux – 透過 SSH 來遠端執行 PowerShell 指令

2020-07-142020-07-14 adminLinux, RedHat / CentOS, Windows

如果需要誇平台 Windows Linux 來遠端執行 PowerShell 指令,可以透過 SSH (SSH 使用非對稱式 與 對稱式加密來確保遠端連線的安全性,有興趣參考這一篇 – http://benjr.tw/301) 來遠端執行 PowerShell 指令. 在 PowerSh […]

Read more

Windows – OpenSSH Server

2020-06-242020-07-13 adminWindows

測試環境為 VMWare 虛擬機 Windows 10 – 1809 Linux CentOS 7 macOS Catalina SSH 使用非對稱式 與 對稱式加密來確保遠端連線的安全性,有興趣參考這一篇 – http://benjr.tw/301 從 Windows Se […]

Read more

CentOS 8 設定 MariaDB Galera Cluster Server

2020-06-182020-06-20 adminLinux, MariaDB, Mysql, RedHat / CentOS

作業環境 CentOS 8 x86_64 (虛擬機) MariaDB Galera Cluster 架構圖 每一個 Node 都需要以下的設定. Node1 : cn183 , IP – 192.168.111.183 Node2 : cn201 , IP – 192.168 […]

Read more

SQL – GET DIAGNOSTICS

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

測試環境為 CentOS 8 x86_64 (虛擬機) 執行 SQL 指令時,錯誤會直接顯示出來. 想要保留這錯誤訊息可以透過 GET DIAGNOSTICS 來處理,語法如下. GET DIAGNOSTICS 參考範例 – https://mariadb.com/kb/en/get-d […]

Read more

SQL Store Procedure 的例外處理 ( DECLARE Error Handler )

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

測試環境為 CentOS 8 x86_64 (虛擬機) 這邊就來看一下關於 Store Procedure 的例外處理 DECLARE Error Handler 的使用方式. DECLARE … HANDLER 宣告方式如下: 概念很簡單就是在 Store Procedure 裡面發生 […]

Read more

SQL Function – LOAD DATA

2020-05-242020-06-04 adminLinux, MariaDB, Mysql, RedHat / CentOS

測試環境為 CentOS 8 x86_64 (虛擬機) 主要想把 Microsoft Excel 轉成 MariaDB 的資料庫 ,Excel 檔案需事前先轉成 CSV 格式或是 OpenDocument .ods 檔案格式(建議),除了可以透過 Mysql 指令 外還可以透過 PHPMyAdmin […]

Read more

SQL Flow Control Statements – IF

2020-05-242020-05-24 adminLinux, MariaDB, Mysql, RedHat / CentOS

測試環境為 CentOS 7 x86_64 (虛擬機) 實際來看一個範例,用來檢視該物品的保存期限是否超過一年. 先來建立用來測試的資料.欄位為 K1 (INT – Primary Key) , ItemName 物品名稱 (VARCHAR) 與 T1 製造日期與時間 (Timestam […]

Read more

MariaDB – 常用搭配 GROUP BY 函數 ( Aggregate Functions )

2020-05-222020-11-11 adminLinux, MariaDB, Mysql, RedHat / CentOS

測試環境為 CentOS 8 x86_64 虛擬機. 字串函數 ( String Functions ) 與 型別轉換 – http://benjr.tw/102953 數字函數 (Numeric Functions) – http://benjr.tw/101970 日期與 […]

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.