把舊的 database 套在新的 server binary 上面進藤光 寫:請問【直接升級】是什麼意思呢?下載新的 MySQL 版本,點選安裝?

版主: 版主管理群
其實, 解決這個問題 (爭議) 的重要關鍵, 在於您為何需要做備份?白牙 寫:可是這種 "不建議" 的方式卻是我這邊唯一正常的方式, 而且還原跟備份只需要不到一分鐘...chiouss 寫:都說*不建議*你這樣做了,還是堅持要用的話請自己保重...
其他方法都時間過長, 漏很多筆資料 , 不然就是記憶體不夠 , 不然就是出現
Duplicate entry '1' for key 1 訊息然後匯入過程中斷
拋磚引玉不是在這種場合用的 Orz白牙 寫:所以這個並不是 "爭辯" , 也不是鼓吹哪一種方式比較好.
我的確不知道為什麼使用 php 來 dump 跟 restore 會出現錯誤
只好用非正統的方式備份, 順便拋磚引玉一下看誰知道 Why
代碼: 選擇全部
Duplicate entry '1' for key 1
我也懶得爭論這種問題,畢竟有時候官方的說法未必是最好的 (所以會有一堆 hacks tech.),但是我前面也說過這種偷步的方法可能會有什麼錯誤了,要用的請自己保重。我只希望寫教學文件的人至少搞清楚這點,不然到最後大家都抄小路然後一起中地雷。白牙 寫:如果某種方式可以完整備份, 時間耗費又非常少
誰管他正統不正統呢?
代碼: 選擇全部
MySQL utility to upgrade database to the current server version
-?, --help Display this help message and exit.
-b, --basedir=name Specifies the directory where MySQL is installed
-d, --datadir=name Specifies the data directory
-#, --debug[=#] This is a non-debug version. Catch this and exit
-T, --debug-info Print some debug info at exit.
--default-character-set=name
Set the default character set.
-f, --force Force execution of mysqlcheck even if mysql_upgrade has
already been executed for the current version of MySQL.
--character-sets-dir=name
Directory where character sets are.
--compress Use compression in server/client protocol.
-h, --host=name Connect to host.
-p, --password[=name]
Password to use when connecting to server. If password is
not given it's solicited on the tty.
-W, --pipe Use named pipes to connect to server.
-P, --port=name Port number to use for connection.
--protocol=name The protocol of connection (tcp,socket,pipe,memory).
--shared-memory-base-name=name
Base name of shared memory.
-S, --socket=name Socket file to use for connection.
-u, --user=name User for login if not current user.
--ssl Enable SSL for connection (automatically enabled with
other flags). Disable with --skip-ssl.
--ssl-ca=name CA file in PEM format (check OpenSSL docs, implies
--ssl).
--ssl-capath=name CA directory (check OpenSSL docs, implies --ssl).
--ssl-cert=name X509 cert in PEM format (implies --ssl).
--ssl-cipher=name SSL cipher to use (implies --ssl).
--ssl-key=name X509 key in PEM format (implies --ssl).
--ssl-verify-server-cert
Verify server's "Common Name" in its cert against
hostname used when connecting. This option is disabled by
default.
-v, --verbose Display more output about the process
正解。我幫人轉站時也推薦他們使用mysql administrator,沒有比用這個東西備份更放心的了。進藤光 寫:我來 + 1
最好的備份還是用 MySQL Administrator 啦~ XD
只是裡面的 Schedule Backup 根本不能用,以前是不能定時,現在則是備出亂碼... Orz