PIXNET Logo登入

Hello World

跳到主文

:D

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

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

1. 下載mysql image
# docker pull mysql:8
2. 查看目前的images 有哪些
# docker images
(繼續閱讀...)
文章標籤

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

  • 個人分類:資料庫
▲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 using LOCK TABLES
解決方式
加上 --single-transaction
或是 --skip-locl-tables 參數
(繼續閱讀...)
文章標籤

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

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

在 PXC 的環境中,如果 replication 失敗的時候,會在 mysql 的目錄下產生檔名為 GRA_*.log 的紀錄
例如,有一個sql 指令是要移除一個 table ,但是 table 不存在... 等
要如何檢視 GRA_*.log 
(繼續閱讀...)
文章標籤

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

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

參考資料:
https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/
# import the MongoDB public GPG Key
wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add -
(繼續閱讀...)
文章標籤

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

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

參考資料:
https://www.postgresql.org/download/linux/ubuntu/
PostgreSQL是開源的物件-關聯式資料庫資料庫管理系統,在類似BSD授權與MIT授權的PostgreSQL授權下發行。
(繼續閱讀...)
文章標籤

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

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

undefined
錯誤訊息:
[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 exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1370 execute command denied to user 'user1'@'192.168.0.%' for routine 'mydatabase1.myprocedure1'' in /var/www/html/xxx.php:88, referer: http://myip.pass.tw/example.php
解決方式:
GRANT EXECUTE ON PROCEDURE mydatabase1.myprocedure1    TO 'user1'@'192.168.0.%';
flush privileges;
(繼續閱讀...)
文章標籤

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

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

undefined
# 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: mydb
-- ------------------------------------------------------
-- Server version       5.0.xx-log
(繼續閱讀...)
文章標籤

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

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

undefined
如果懶得查 log 到底是哪一筆 commit 出錯
可以用以下懶人排除法
SLAVE STOP;
(繼續閱讀...)
文章標籤

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

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

undefined
環境:
CentOS 8.x
MySQL Server 5.x
在編譯的過程中出現以下錯誤
mysqld.cc:6503:1: error:narrowing conversion of 「18446744073709551615」 from 「long unsigned int」 to 「longlong」 {aka 「long long int」} inside { } [-Wnarrowing]
(繼續閱讀...)
文章標籤

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  9:20:44 [Warning] Checking table:   './mydb/mytable1'
解決方式
# mysqlcheck -u root -p --repair mydb mytable1
(繼續閱讀...)
文章標籤

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

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

momo shop

近期文章

  • 阻擋偽造老闆名字發的詐騙信
  • 解決連線網路印表機錯誤 0x00000709
  • 解決HP筆記型電腦無法從win10升級至win11問題
  • windows 11 找不到列印至PDF 印表機
  • 無線網路的網卡mac address 會變耶
  • 解決 umount 出現 target is busy.
  • 解決rsync 同步錯誤訊息
  • 透過cmd命令模式調整windows 時區
  • 解決M365會議室資源只顯示忙碌
  • 解決 MacOS 連 forticlient 錯誤訊息

誰來我家

我的地盤

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

文章分類

  • 遊記 (24)
  • 系統管理 (438)
  • 吃吃吃 (29)
  • 工商服務 (95)
  • 資料庫 (45)
  • 未分類文章 (1)

參觀人氣

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

pixGoogleAdsense1

pixGoogleAdsense2

留言板