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

Database

phpMyAdmin – ./tmp/ is not accessible

2019-11-012020-03-04 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

安裝完的 phpMyAdmin 在首頁都會顯示. 測試環境為 CentOS 8 x86_64 主要 phpMyAdmin 會使用一個資料夾當作暫存資料的快取,不設定也可以(會影響 phpMyAdmin 效能),照下面的方式來設定. 還需在 config.inc.php 加入以下的設定. 請重新登入 […]

Read more

SQL 語法 SELECT Full Text Index + Sub-Query

2019-10-312020-02-11 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

SQL 可以透過 SELECT + WHERE + LIKE 可以針對 CHAR, VARCHAR, 以及 TEXT 指定欄位 (COLUMN) 做關鍵字來比對搜尋 ( 需注意資料庫字元編碼 Character Sets 與 文字排序 Collations ,請參考資料庫編碼 – https://b […]

Read more

SQL 語法 刪除資料表,資料庫

2019-10-212019-10-21 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 7 x86_64 (虛擬機) 刪除資料表 刪除資料表可以透過 DELETE , TRUNCATE TABLE 與 DROP TABLE ,來看一下他們的差異. 先建立測試用的資料. DELETE DELETE 不加 WHERE 條件下就會刪除整個資料表 Table 的資料了 […]

Read more

SQL 語法 REPLACE

2019-10-182019-10-18 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 7 x86_64 (虛擬機) REPLACE 也是新增 (同 INSERT) 資料時使用,但他會先檢查該筆新增的資料其 PRIMARY KEY 或是 UNIQUE index 是否在 資料庫.表 已存在 (重覆資料) ,這時候他會更新該筆資料而不是新增資料. REPLACE […]

Read more

SQL 語法 INSERT ON DUPLICATE KEY UPDATE

2019-10-182019-10-18 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 7 x86_64 (虛擬機) 有辦法在新增 (INSERT) 資料時,先確認是否資料已存在,有的話更新該筆資料,沒有時才新增資料.可以使用 INSERT … ON DUPLICATE KEY UPDATE 語法來達成.他會先檢查該筆新增的資料其 PRIMARY […]

Read more

MariaDB 資料庫編碼

2019-10-162023-09-12 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 7 / CentOS 8 x86_64 MariaDB (MySQL) 資料庫編碼集預設為 latin1 (西歐語言). character_set_client : 來自客戶端語句的字元編碼 ( Character Sets ). character_set_connec […]

Read more

Linux – Redash

2019-10-052020-04-23 adminLinux, MariaDB, Mysql, Ubuntu

Loading

測試環境為 Ubuntu 18.04 x86_64 (虛擬機 , IP: 192.168.111.143) 我要怎麼把資料庫的報表資料直接呈現在網頁上(表格或是圖表),可以透過 Redash (類似 Microsoft 的 Power BI ) 資料視覺化工具來做. 安裝 Mariadb (MySQ […]

Read more

MySQL- Convert Column to Row (Pivot Table 樞紐分析表)

2019-09-112022-11-23 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 7 x86_64 (虛擬機) 將資料庫的列 (Column) 轉換為行 (row) 來呈現 (Pivot Table : 樞紐分析表) 其統計結果,如下圖所示. 先建立要測試用的資料庫. 利用 GROUP BY 以及 ORDER BY 來統計資料. 使用如下函數: SUM […]

Read more

MariaDB – 常用處理數字函數 ( Numeric Functions )

2019-09-092021-06-30 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 虛擬機. 字串函數 ( String Functions ) 與 型別轉換 – https://benjr.tw/102953 數字函數 (Numeric Functions) – 這邊介紹. 日期與時間函數 (Date &#038 […]

Read more

PHPMyAdmin – 資料無法匯入

2019-09-092019-11-05 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境 CentOS 7 64bits + Apache 我們可以透過 MyPHPAdmin 的匯入 ( Import )功能,把資料匯入資料庫,但當資料大於 2M 時會出現以下的資訊. 主要是被 PHP 上傳檔案 2M 的上限所限制住,我們可以透過 PHP 函數 phpinfo() 來看一下目前 […]

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.