跳至內容
bestlong.Wiki
用戶工具
登入
網站工具
工具
顯示頁面
舊版
反向連結
最近更新
多媒體管理器
站台地圖
登入
最近更新
多媒體管理器
站台地圖
足跡:
mysql
本頁是唯讀的,您可以看到原始碼,但不能更動它。您如果覺得這是誤判,請詢問管理員。
====== MySQL 資料庫 ====== * 官網:http://www.mysql.com/ * [[http://www.backup2mail.com/|Backup2Mail]] is mini PHP application that creates regular backups of your MySQL database and sends it to configurable e-mail address. The whole process is scheduled with a help of Cron, a Unix program that runs programs at scheduled times. ===== 密碼管理 ===== 安裝 MySQL 後 root 管理者帳號預設是沒有密碼的,會有安全性問題 <code> # mysqladmin -u root password newpassword # mysqladmin -u root -p flush-privileges </code> ===== 避免亂碼 ===== 請在 my.cnf (my.ini) 設定檔內加入下列設定。 <code> [client] default-character-set=utf8 [mysqld] default-character-set=utf8 init_connect='SET NAMES utf8' </code> ===== phpMyAdmin ===== ==== 安裝 ==== <code> 複製 config.sample.inc.php 到 config.inc.php 編輯 config.inc.php 內容 修改設定 $cfg['blowfish_secret'] = ''; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */ 變更成 http 認證模式 $cfg['Servers'][$i]['auth_type'] = 'http'; </code> ==== 問題 ==== - 無法讀取 mysql 模組,<br />請檢查 PHP 設定 * 安裝 php-mysql 解決 - 找不到 PHP 內的 mbstring 編碼模組, 沒有這個模組, phpMyAdmin 無法準確地分割雙字元文字, 而可能產生問題 * 安裝 php-mbstring 解決 - 設定檔案現在需要密碼 (passphrase) (blowfish_secret). * 修改 config.inc.php 的 $cfg['blowfish_secret'] 解決 - 無法讀取 mcrypt 模組,<br />請檢查 PHP 設定 * 安裝 mcrypt module 參考 http://www.centos.org/modules/newbb/viewtopic.php?topic_id=6516
mysql.1251813859.txt.gz · 上一次變更: 2010/08/23 15:30 (外部編輯)
頁面工具
顯示頁面
舊版
反向連結
回到頁頂