首页 > 解决方案 > 突然,phpmyadmin 不起作用,我真的不明白为什么 - 日志对我来说看起来不错

问题描述

我刚刚接触了 PHP、Laravel,并且正在使用 XAMPP。

我已经从 XAMPP 启动了 MySQL 服务,并且 PHPMyAdmin 工作正常。然后,使用那些 env(进入 Laravel)设置,我启动了服务器(php artisan serve),我得到了一个错误,比如“数据库 7 不存在”(我看不到它,因为我重新启动了我的计算机)。

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=seven
DB_USERNAME=root
DB_PASSWORD=

现在 Phpmyadmin 不再工作了。我得到“无法连接 - Firefox 无法在本地主机上建立与服务器的连接”,我不知道为什么。

这是mysql_error.log:

InnoDB: using atomic writes.
2021-03-23 21:32:28 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2021-03-23 21:32:28 0 [Note] InnoDB: Uses event mutexes
2021-03-23 21:32:28 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2021-03-23 21:32:28 0 [Note] InnoDB: Number of pools: 1
2021-03-23 21:32:28 0 [Note] InnoDB: Using SSE2 crc32 instructions
2021-03-23 21:32:28 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2021-03-23 21:32:28 0 [Note] InnoDB: Completed initialization of buffer pool
2021-03-23 21:32:28 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=300692
2021-03-23 21:32:28 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2021-03-23 21:32:28 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2021-03-23 21:32:28 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2021-03-23 21:32:28 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2021-03-23 21:32:28 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2021-03-23 21:32:28 0 [Note] InnoDB: Waiting for purge to start
2021-03-23 21:32:28 0 [Note] InnoDB: 10.4.18 started; log sequence number 300701; transaction id 193
2021-03-23 21:32:28 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2021-03-23 21:32:28 0 [Note] Plugin 'FEEDBACK' is disabled.
2021-03-23 21:32:28 0 [Note] Server socket created on IP: '::'.

标签: phpmyadminxampp

解决方案


请在 XAMPP 控制面板中检查您的 apache 和 mysql 是否正在运行


推荐阅读