簡體   English   中英

XAMPP - mysql 和 phpmyadmin 不顯示圖像

[英]XAMPP - mysql and phpmyadmin not displaying images

我已經安裝了 XAMP 並且一切正常,但是每次我在“httpd.conf”上寫這個時:

Options FollowSymLinks Includes ExecCGI

RewriteEngine on 
RewriteCond %{HTTP_REFERER} !^http://(www\.)?localhost [NC] 
RewriteCond %{HTTP_REFERER} !^http://(www\.)?localhost.*$ [NC] 
RewriteRule \.(gif|jpg|mp4)$ - [F]

這發生在 phpmyadmin(附加圖像)上,我無法訪問表格,也​​無法弄清楚原因。 有什么幫助嗎?

phpmyadmin 圖像

InnoDB: using atomic writes.
2020-04-01 12:15:18 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2020-04-01 12:15:18 0 [Note] InnoDB: Uses event mutexes
2020-04-01 12:15:18 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-04-01 12:15:18 0 [Note] InnoDB: Number of pools: 1
2020-04-01 12:15:18 0 [Note] InnoDB: Using SSE2 crc32 instructions
2020-04-01 12:15:18 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2020-04-01 12:15:18 0 [Note] InnoDB: Completed initialization of buffer pool
2020-04-01 12:15:18 0 [Note] InnoDB: The log sequence number 0 in the system tablespace does not match the log sequence number 47116 in the ib_logfiles!
2020-04-01 12:15:19 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2020-04-01 12:15:19 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2020-04-01 12:15:19 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-04-01 12:15:19 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-04-01 12:15:19 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2020-04-01 12:15:19 0 [Note] InnoDB: Waiting for purge to start
2020-04-01 12:15:19 0 [Note] InnoDB: 10.4.11 started; log sequence number 47116; transaction id 9
2020-04-01 12:15:19 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2020-04-01 12:15:19 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-04-01 12:15:19 0 [Note] InnoDB: Buffer pool(s) load completed at 200401 12:15:19
2020-04-01 12:15:19 0 [Note] Server socket created on IP: '::'.
saction id 299
2020-04-01 11:57:20 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2020-04-01 11:57:20 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-04-01 11:57:20 0 [Note] Server socket created on IP: '::'.
2020-04-01 11:57:20 0 [Note] InnoDB: Buffer pool(s) load completed at 200401 11:57:20

編輯:phpmyadmin 錯誤: phpmyadmin 錯誤

我不是 mod_rewrite 專家,但在我看來,您好像在 RewriteRule 中故意阻止 .gif 文件,這解釋了為什么圖標看起來很奇怪。 你想用那條線完成什么?

關於第二個錯誤,您似乎已經配置了 phpMyAdmin 高級功能(例如,使用$cfg['Servers'][$i]['pmadb']指令)並且沒有或已經刪除了數據庫或 phpMyAdmin 為此使用的表。 解決此問題的最簡單方法是編輯config.inc.php ,刪除該行(或將其注釋掉)並再次啟動 phpMyAdmin。 連接后,您可以從 'sql' 目錄中的create_tables.sql文件創建正確的表結構,或者禁用該功能。

使用高級功能有一個零配置選項; 如果您的 phpMyAdmin 表中確實沒有任何參考,則可能是 autoconf 接管了。 嘗試使用私有模式或從其他瀏覽器登錄(這將繞過本地 cookie),看看是否效果更好(如果是這樣,只需清除您的 cookie,phpMyAdmin cookie 以pma開頭)。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM