PIXNET Logo登入

Hello World

跳到主文

:D

部落格全站分類:生活綜合

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 11月 18 週五 202209:28
  • docker 架設 mysql server 超級快

1. 下載mysql image
# docker pull mysql:8
2. 查看目前的images 有哪些
# docker images
3. 啟動 mysql,把容器的3306 port 對應到本機的 3306 port ,初始化密碼為 Lab3306
# docker run --na

(繼續閱讀...)
文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣(3)

  • 個人分類:資料庫
▲top
  • 12月 09 週四 202117:22
  • 解決 mysqldump: Got error: 1044: Access denied 錯誤訊息

# mysqldump -h mysqldb -u root -p information_schema
mysqldump: Got error: 1044: Access denied for user root@test to database information_schema when

(繼續閱讀...)
文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣(84)

  • 個人分類:資料庫
▲top
  • 11月 03 週三 202111:51
  • Percona XtraDB Cluster 的 GRA_*.log

在 PXC 的環境中,如果 replication 失敗的時候,會在 mysql 的目錄下產生檔名為 GRA_.log 的紀錄
例如,有一個sql 指令是要移除一個 table ,但是 table 不存在... 等
要如何檢視 GRA_.log
1. 下載 GRA-header,並解壓縮

2. 將

(繼續閱讀...)
文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣(26)

  • 個人分類:資料庫
▲top
  • 9月 28 週二 202111:14
  • ubuntu 20.04 安裝 MongoDB Community Edition

參考資料:

# import the MongoDB public GPG Key
wget -qO - sudo apt-key add -
# 如果系統顯示未安裝 gnupg 套件,請先安裝
sudo apt-get install gnupg
# Create a list file f

(繼續閱讀...)
文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣(56)

  • 個人分類:資料庫
▲top
  • 9月 28 週二 202110:16
  • Ubuntu 20.04 安裝 PostgreSQL

參考資料:

PostgreSQL是開源的物件-關聯式資料庫資料庫管理系統,在類似BSD授權與MIT授權的PostgreSQL授權下發行
透過 PostgreSQL Apt Repository 安裝最新版的 PostgreSQL
# Create the file repository confi

(繼續閱讀...)
文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣(39)

  • 個人分類:資料庫
▲top
  • 6月 11 週五 202115:52
  • 解決 mysql stored procedure 無執行權限問題

錯誤訊息:
Fri Jun 11 13:48:51 2021 error client xx.xx.xx.xx FastCGI: server /usr/local/sbin/php-fpm stderr: PHP message: PHP Fatal error: Uncaught excepti

(繼續閱讀...)
文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣(237)

  • 個人分類:資料庫
▲top
  • 5月 14 週五 202111:16
  • 解決 mysql 5.7 無法備份舊版 mysql 問題

# mysqldump -h 10.1.1.100 -u root -p mydb
Enter password:
-- MySQL dump 10.13 Distrib 5.7.xx-xx, for Linux x86_64
--
-- Host: 10.1.1.100 Database: my

(繼續閱讀...)
文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣(45)

  • 個人分類:資料庫
▲top
  • 4月 06 週二 202115:18
  • 修正 mysql replication 同步失敗

如果懶得查 log 到底是哪一筆 commit 出錯
可以用以下懶人排除法
SLAVE STOP;
SLAVE START;
上述做法即是跳過有問題的 commit , 直接往下繼續同步

(繼續閱讀...)
文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣(18)

  • 個人分類:資料庫
▲top
  • 3月 30 週二 202114:53
  • 解決新版Linux 安裝舊版mysql server 錯誤

環境:
CentOS 8.x
MySQL Server 5.x
在編譯的過程中出現以下錯誤
mysqld.cc:6503:1: error:narrowing conversion of 18446744073709551615 from long unsigned int to longlong

(繼續閱讀...)
文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣(87)

  • 個人分類:資料庫
▲top
  • 2月 04 週四 202110:29
  • 修復毀損的 mysql table

mysql error log 顯示以下訊息
210203 9:20:44 ERROR /usr/local/mysql/libexec/mysqld: Table ./mydb/mytable1 is marked as crashed and should be repaired
210203

(繼續閱讀...)
文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣(21)

  • 個人分類:資料庫
▲top
12...5»

momo shop

近期文章

    誰來我家

    我的地盤

    helloworld
    暱稱:
    helloworld
    分類:
    生活綜合
    好友:
    累積中
    地區:

    文章分類

    • 資料庫 (392)
    • 工商服務 (864)
    • 吃吃吃 (248)
    • 系統管理 (3,768)
    • 遊記 (224)
    • 未分類文章 (1)

    參觀人氣

    • 本日人氣:0
    • 累積人氣:0

    pixGoogleAdsense1

    pixGoogleAdsense2

    留言板