這裏顯示兩個版本的差異處。
service:mysql [2011/04/26 00:46] wenpei 建立 |
service:mysql [2018/05/22 23:42] (目前版本) sars |
||
---|---|---|---|
行 1: | 行 1: | ||
+ | |||
+ | MySQL Memory Calculator: http://www.mysqlcalculator.com/ | ||
+ | |||
====== MySQL on Debian ====== | ====== MySQL on Debian ====== | ||
在 Debian 中,會使用 debian-sys-maint 這個帳號存取 MySQL 資料庫,而這個帳號的密碼則是儲存在 | 在 Debian 中,會使用 debian-sys-maint 這個帳號存取 MySQL 資料庫,而這個帳號的密碼則是儲存在 | ||
/etc/mysql/debian.cnf | /etc/mysql/debian.cnf | ||
這個檔案中,如果平常是透過備份 /var/lib/mysql 這個目錄的方式來備份整個資料庫,那這個 debian.cnf 檔案也要記得備份,不然在重新安裝 MySQL 後,就算直接把整個目錄還原回去,還是會無法存取。 | 這個檔案中,如果平常是透過備份 /var/lib/mysql 這個目錄的方式來備份整個資料庫,那這個 debian.cnf 檔案也要記得備份,不然在重新安裝 MySQL 後,就算直接把整個目錄還原回去,還是會無法存取。 |