MySQL 檔案太大上傳不上去!
- EZCNN
-
Topic Author
- 訪客
-
- abokuo
-
- Offline
- 版主
-
Less
More
2013-06-11 05:48 #24916
來自 abokuo
我的 Joomla! 資訊網站:http://www.abokuo.com
Joomla! 書籍:Joomla! 3.x 素人架站計畫(2015.07)
abokuo replied the topic: MySQL 檔案太大上傳不上去!
我在另一篇主題有回答 php.ini 的位置,以你在該主題中提到「MySQL 資料庫有 159MB」,
你是需要修改 php.ini,但是除了檔案上傳上限之外,執行時間、可用的記憶體大小也需要增加。
到 PHPMyAdmin 的目錄裡找到「config.ini.php」檔案,找到或是自行加入以下兩行:然後在 PHPMyAdmin 裡建立「ImportSQLFile」與「ExportSQLFile」兩個資料夾
作為匯入及匯出 SQL 檔案使用。
把你的 SQL 檔案放在「ImportSQLFile」資料夾裡,重新讀取 PHPMyAdmin 頁面,
就會在「匯入」分頁看到新的選項,用這個方法匯入大型資料庫檔案吧。
你是需要修改 php.ini,但是除了檔案上傳上限之外,執行時間、可用的記憶體大小也需要增加。
到 PHPMyAdmin 的目錄裡找到「config.ini.php」檔案,找到或是自行加入以下兩行:
$cfg['UploadDir'] = 'ImportSQLFile'; ←上傳資料夾的名稱
$cfg['SaveDir'] = 'ExportSQLFile'; ←匯出資料夾的名稱
作為匯入及匯出 SQL 檔案使用。
把你的 SQL 檔案放在「ImportSQLFile」資料夾裡,重新讀取 PHPMyAdmin 頁面,
就會在「匯入」分頁看到新的選項,用這個方法匯入大型資料庫檔案吧。
我的 Joomla! 資訊網站:http://www.abokuo.com
Joomla! 書籍:Joomla! 3.x 素人架站計畫(2015.07)
Please 登入 to join the conversation.
- EZCNN
-
Topic Author
- 訪客
-
2013-06-11 13:44 #24922
來自 EZCNN
EZCNN replied the topic: MySQL 檔案太大上傳不上去!
Hi abokuo:
I have changed the setting as below:
改過的php.ini
max_execution_time = 120 ; Maximum execution time of each script, in seconds
max_input_time = 120 ; Maximum amount of time each script may spend parsing request data
memory_limit = 256M ; Maximum amount of memory a script may consume (8MB)
my config.inc.php:
$cfg = './NewMySQL';
$cfg = './OldMySQL';
My new folders:
AppSer/www/phpMyAdmin/NewMySQL (put my new database in this folder and rename it as joomla250.sql)
AppSer/www/phpMyAdmin/OldMySQL (put my original database joomla250.sql in this folder)
So, what's the next step?
I don't quite understand what you mean.
“重新讀取 PHPMyAdmin 頁面,
就會在「匯入」分頁看到新的選項,用這個方法匯入大型資料庫檔案吧。”
really appreciate
EZCNN
I have changed the setting as below:
改過的php.ini
max_execution_time = 120 ; Maximum execution time of each script, in seconds
max_input_time = 120 ; Maximum amount of time each script may spend parsing request data
memory_limit = 256M ; Maximum amount of memory a script may consume (8MB)
my config.inc.php:
$cfg = './NewMySQL';
$cfg = './OldMySQL';
My new folders:
AppSer/www/phpMyAdmin/NewMySQL (put my new database in this folder and rename it as joomla250.sql)
AppSer/www/phpMyAdmin/OldMySQL (put my original database joomla250.sql in this folder)
So, what's the next step?
I don't quite understand what you mean.
“重新讀取 PHPMyAdmin 頁面,
就會在「匯入」分頁看到新的選項,用這個方法匯入大型資料庫檔案吧。”
really appreciate
EZCNN
Please 登入 to join the conversation.
- abokuo
-
- Offline
- 版主
-
- EZCNN
-
Topic Author
- 訪客
-