1. 下載mysql image # docker pull mysql:8 2. 查看目前的images 有哪些 # docker images 3. 啟動 mysql,把容器的3306 port 對應到本機的 3306 port ,初始化密碼為 Lab3306 # docker run --na
- 11月 18 週五 202209:28
1. 下載mysql image # docker pull mysql:8 2. 查看目前的images 有哪些 # docker images 3. 啟動 mysql,把容器的3306 port 對應到本機的 3306 port ,初始化密碼為 Lab3306 # docker run --na
# mysqldump -h mysqldb -u root -p information_schema mysqldump: Got error: 1044: Access denied for user root@test to database information_schema when
在 PXC 的環境中,如果 replication 失敗的時候,會在 mysql 的目錄下產生檔名為 GRA_.log 的紀錄 例如,有一個sql 指令是要移除一個 table ,但是 table 不存在... 等 要如何檢視 GRA_.log 1. 下載 GRA-header,並解壓縮 2. 將
參考資料: # import the MongoDB public GPG Key wget -qO - sudo apt-key add - # 如果系統顯示未安裝 gnupg 套件,請先安裝 sudo apt-get install gnupg # Create a list file f
參考資料: PostgreSQL是開源的物件-關聯式資料庫資料庫管理系統,在類似BSD授權與MIT授權的PostgreSQL授權下發行 透過 PostgreSQL Apt Repository 安裝最新版的 PostgreSQL # Create the file repository confi
錯誤訊息: 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
# 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
如果懶得查 log 到底是哪一筆 commit 出錯 可以用以下懶人排除法 SLAVE STOP; SLAVE START; 上述做法即是跳過有問題的 commit , 直接往下繼續同步
環境: CentOS 8.x MySQL Server 5.x 在編譯的過程中出現以下錯誤 mysqld.cc:6503:1: error:narrowing conversion of 18446744073709551615 from long unsigned int to longlong
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