XAMPP - mysql 和 phpmyadmin 不显示图像
Posted
技术标签:
【中文标题】XAMPP - mysql 和 phpmyadmin 不显示图像【英文标题】:XAMPP - mysql and phpmyadmin not displaying images 【发布时间】:2020-07-13 01:36:47 【问题描述】:我已经安装了 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 image
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 error
【问题讨论】:
【参考方案1】:我不是 mod_rewrite 专家,但在我看来,您好像故意在您的 RewriteRule 中阻止 .gif 文件,这就解释了为什么这些图标看起来很奇怪。你想用那条线完成什么?
关于第二个错误,您似乎已经配置了 phpMyAdmin advanced features(例如,使用 $cfg['Servers'][$i]['pmadb']
指令)并且没有或已经删除了 phpMyAdmin 为此使用的数据库或表。解决此问题的最简单方法是编辑 config.inc.php
,删除该行(或将其注释掉)并再次启动 phpMyAdmin。连接后,您可以从“sql”目录中的create_tables.sql
文件创建正确的表结构,或者禁用该功能。
使用高级功能有一个零配置选项;如果您的 phpMyAdmin 表中确实没有任何参考,则可能是 autoconf 接管。尝试使用私有模式或从其他浏览器(将绕过本地 cookie)登录,看看是否效果更好(如果是,请清除您的 cookie,phpMyAdmin cookie 以 pma
开头)。
【讨论】:
以上是关于XAMPP - mysql 和 phpmyadmin 不显示图像的主要内容,如果未能解决你的问题,请参考以下文章