[精讚] [會員登入]
3554

[phpmyadmin] 登錄超時 (1440 秒未操作),請重新登錄

phpmyadmin登錄超時 (1440 秒未操作),請重新登錄的問題,該如何解決?

分享此文連結 //n.sfs.tw/10375

分享連結 [phpmyadmin] 登錄超時 (1440 秒未操作),請重新登錄 @新精讚
(文章歡迎轉載,務必尊重版權註明連結來源)
2021-03-30 13:10:07 最後編修
2016-12-05 11:24:11 By 張○○
 

自動目錄

phpmyadmin是很好用的工具,但是出現登錄超時 (1440 秒未操作)這樣的問題,

You have been automatically logged out due to inactivity of 1440 seconds.
Once you log in again, you should be able to resume the work where you left off.

要一直重登滿煩的。請照下面修改:

一、修改 /etc/php.ini

設定系統逾時的秒數
session.gc_maxlifetime = 86400

重啟 apache 生效

二、修改 /path/to/phpmyadmin 設定檔

到你安裝phpmyadmin的目錄

理論上在 phpmyadmin的根目錄下應該有 config.inc.php 這個檔案,如果沒有的話,請將sample設定檔拿來用:

# cp config.sample.inc.php config.inc.php

修改config.inc.php

最上面加入一行,設定時間(秒數)即可

$cfg['LoginCookieValidity'] = 86400;

備註

如果你是由 yum 安裝的phpmyadmin [Centos7] 安裝phpMyAdmin@新精讚

設定檔請放在 /etc/phpMyAdmin/


原文 2009-11-11 22:11:34、2015-04-18 14:15:11 合併

END

你可能感興趣的文章

[Mysql] 使用union合併兩個表 mysql合併兩個表的方法,使用union

[Mysql] 修改欄位的自動索引值autoindex (auto_increment ) Mysql 新增、刪除、修改、查看欄位的自動索引值autoindex (auto_increment)

[MySQL/Mariadb] 正規表達式(regular express) mysql的正規表達式很詭異,很不能接受

[Mysql/Mariadb] 建立使用者及資料庫 Mysql/Mariadb建立使用者、刪除使用者、給予權限、建立資料庫

[Mysql/MariaDB] 修改資料庫、表格或欄位名稱 Mysql/MariaDB修改資料庫、表格或欄位名稱

[Mysql/MariaDB] 使用Memory引擎修改及設定最大值的方法 Mysql/MariaDB 使用Memory引擎預設是16MB,修改及設定最大值的方法。

隨機好文

[Windows7] 移除IE10及移除IE11 Windows7 不得已的情況要移除IE11或IE10怎麼做?

TFTP Server 安裝及使用 讓設備的網路設定檔或是韌體經由TFTP拷備出來,操作的方法

詭異的創業思維 創業的思維中,有多少銀彈,有多少技術,有多少人脈,有多少時間等等,每個都要考慮進去,以熱忱建立的關係脆弱的像蘇打餅乾一樣..

APACHE的記錄檔格式 LogFormat 語法 在APACHE中有定義一些記錄的語法模版 在 /etc/httpd/conf/httpd.conf 中: LogForm

[CodeIgniter 3] 資料庫的使用方法整理1/2 --Select的使用 [CodeIgniter 3] 資料庫的使用方法整理:Select的使用