php - WAMP 服务器不允许访问 PHPMyAdmin

标签 php mysql wampserver

我正在尝试在笔记本电脑上设置 PHP,并且使用 WAMPP 服务器,但是当我尝试进入 PHPMyAdmin位,它显示

You don't have permission to access /phpmyadmin/ on this server.

我该如何解决这个问题?

顺便说一句,我正在尝试将 MySQL workbenchPHP 链接起来,但我不知道如何做,因为我想在上面运行一个小网站我的笔记本电脑,但是当我去注册新成员(member)时,我得到

Could not execute query

编辑MySQL 日志 中显示以下内容

160518 16:11:56 [Note] Plugin 'FEDERATED' is disabled.
InnoDB: The InnoDB memory heap is disabled
InnoDB: Mutexes and rw_locks use Windows interlocked functions
InnoDB: Compressed tables use zlib 1.2.3
160518 16:11:56  InnoDB: Initializing buffer pool, size = 128.0M
160518 16:11:56  InnoDB: Completed initialization of buffer pool
InnoDB: The first specified data file .\ibdata1 did not exist:
InnoDB: a new database to be created!
160518 16:11:56  InnoDB: Setting file .\ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
160518 16:11:57  InnoDB: Log file .\ib_logfile0 did not exist: new to be created
InnoDB: Setting log file .\ib_logfile0 size to 5 MB
InnoDB: Database physically writes the file full: wait...   
160518 16:11:57  InnoDB: Log file .\ib_logfile1 did not exist: new to be created
InnoDB: Setting log file .\ib_logfile1 size to 5 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Doublewrite buffer not found: creating new
InnoDB: Doublewrite buffer created
InnoDB: 127 rollback segment(s) active.
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
160518 16:11:59  InnoDB: 1.1.4 started; log sequence number 0
160518 16:11:59 [ERROR] Can't start server: Bind on TCP/IP port: No such file or directory
160518 16:11:59 [ERROR] Do you already have another mysqld server running on port: 3306 ?
160518 16:11:59 [ERROR] Aborting

160518 16:11:59  InnoDB: Starting shutdown...
160518 16:12:01  InnoDB: Shutdown completed; log sequence number 1595675
160518 16:12:01 [Note] wampmysqld: Shutdown complete

160518 16:34:02 [Note] Plugin 'FEDERATED' is disabled.
InnoDB: The InnoDB memory heap is disabled
InnoDB: Mutexes and rw_locks use Windows interlocked functions
InnoDB: Compressed tables use zlib 1.2.3
160518 16:34:02  InnoDB: Initializing buffer pool, size = 128.0M
160518 16:34:02  InnoDB: Completed initialization of buffer pool
160518 16:34:02  InnoDB: highest supported file format is Barracuda.
160518 16:34:02  InnoDB: 1.1.4 started; log sequence number 1595675
160518 16:34:02 [ERROR] Can't start server: Bind on TCP/IP port: No such file or directory
160518 16:34:02 [ERROR] Do you already have another mysqld server running on port: 3306 ?
160518 16:34:02 [ERROR] Aborting

160518 16:34:03  InnoDB: Starting shutdown...
160518 16:34:04  InnoDB: Shutdown completed; log sequence number 1595675
160518 16:34:04 [Note] wampmysqld: Shutdown complete

160518 16:54:31 [Note] Plugin 'FEDERATED' is disabled.
InnoDB: The InnoDB memory heap is disabled
InnoDB: Mutexes and rw_locks use Windows interlocked functions
InnoDB: Compressed tables use zlib 1.2.3
160518 16:54:31  InnoDB: Initializing buffer pool, size = 128.0M
160518 16:54:31  InnoDB: Completed initialization of buffer pool
160518 16:54:32  InnoDB: highest supported file format is Barracuda.
160518 16:54:32  InnoDB: 1.1.4 started; log sequence number 1595675
160518 16:54:32 [ERROR] Can't start server: Bind on TCP/IP port: No such file or directory
160518 16:54:32 [ERROR] Do you already have another mysqld server running on port: 3306 ?
160518 16:54:32 [ERROR] Aborting

160518 16:54:32  InnoDB: Starting shutdown...
160518 16:54:33  InnoDB: Shutdown completed; log sequence number 1595675
160518 16:54:33 [Note] wampmysqld: Shutdown complete

160518 17:48:21 [Note] Plugin 'FEDERATED' is disabled.
InnoDB: The InnoDB memory heap is disabled
InnoDB: Mutexes and rw_locks use Windows interlocked functions
InnoDB: Compressed tables use zlib 1.2.3
160518 17:48:21  InnoDB: Initializing buffer pool, size = 128.0M
160518 17:48:21  InnoDB: Completed initialization of buffer pool
160518 17:48:21  InnoDB: highest supported file format is Barracuda.
160518 17:48:22  InnoDB: 1.1.4 started; log sequence number 1595675
160518 17:48:22 [ERROR] Can't start server: Bind on TCP/IP port: No such file or directory
160518 17:48:22 [ERROR] Do you already have another mysqld server running on port: 3306 ?
160518 17:48:22 [ERROR] Aborting

160518 17:48:22  InnoDB: Starting shutdown...
160518 17:48:23  InnoDB: Shutdown completed; log sequence number 1595675
160518 17:48:23 [Note] wampmysqld: Shutdown complete

160519  8:42:25 [Note] Plugin 'FEDERATED' is disabled.
InnoDB: The InnoDB memory heap is disabled
InnoDB: Mutexes and rw_locks use Windows interlocked functions
InnoDB: Compressed tables use zlib 1.2.3
160519  8:42:25  InnoDB: Initializing buffer pool, size = 128.0M
160519  8:42:25  InnoDB: Completed initialization of buffer pool
160519  8:42:26  InnoDB: highest supported file format is Barracuda.
160519  8:42:27  InnoDB: 1.1.4 started; log sequence number 1595675
160519  8:42:27 [ERROR] Can't start server: Bind on TCP/IP port: No such file or directory
160519  8:42:27 [ERROR] Do you already have another mysqld server running on port: 3306 ?
160519  8:42:27 [ERROR] Aborting

160519  8:42:27  InnoDB: Starting shutdown...
160519  8:42:28  InnoDB: Shutdown completed; log sequence number 1595675
160519  8:42:28 [Note] wampmysqld: Shutdown complete

160519  9:48:56 [Note] Plugin 'FEDERATED' is disabled.
InnoDB: The InnoDB memory heap is disabled
InnoDB: Mutexes and rw_locks use Windows interlocked functions
InnoDB: Compressed tables use zlib 1.2.3
160519  9:48:56  InnoDB: Initializing buffer pool, size = 128.0M
160519  9:48:56  InnoDB: Completed initialization of buffer pool
160519  9:48:56  InnoDB: highest supported file format is Barracuda.
160519  9:48:56  InnoDB: 1.1.4 started; log sequence number 1595675
160519  9:48:56 [ERROR] Can't start server: Bind on TCP/IP port: No such file or directory
160519  9:48:56 [ERROR] Do you already have another mysqld server running on port: 3306 ?
160519  9:48:56 [ERROR] Aborting

160519  9:48:56  InnoDB: Starting shutdown...
160519  9:48:57  InnoDB: Shutdown completed; log sequence number 1595675
160519  9:48:57 [Note] wampmysqld: Shutdown complete

160519  9:50:35 [Note] Plugin 'FEDERATED' is disabled.
InnoDB: The InnoDB memory heap is disabled
InnoDB: Mutexes and rw_locks use Windows interlocked functions
InnoDB: Compressed tables use zlib 1.2.3
160519  9:50:35  InnoDB: Initializing buffer pool, size = 128.0M
160519  9:50:35  InnoDB: Completed initialization of buffer pool
160519  9:50:35  InnoDB: highest supported file format is Barracuda.
160519  9:50:35  InnoDB: 1.1.4 started; log sequence number 1595675
160519  9:50:35 [ERROR] Can't start server: Bind on TCP/IP port: No such file or directory
160519  9:50:35 [ERROR] Do you already have another mysqld server running on port: 3306 ?
160519  9:50:35 [ERROR] Aborting

160519  9:50:35  InnoDB: Starting shutdown...
160519  9:50:37  InnoDB: Shutdown completed; log sequence number 1595675
160519  9:50:37 [Note] wampmysqld: Shutdown complete

160519  9:51:03 [Note] Plugin 'FEDERATED' is disabled.
InnoDB: The InnoDB memory heap is disabled
InnoDB: Mutexes and rw_locks use Windows interlocked functions
InnoDB: Compressed tables use zlib 1.2.3
160519  9:51:03  InnoDB: Initializing buffer pool, size = 128.0M
160519  9:51:03  InnoDB: Completed initialization of buffer pool
160519  9:51:03  InnoDB: highest supported file format is Barracuda.
160519  9:51:04  InnoDB: 1.1.4 started; log sequence number 1595675
160519  9:51:04 [ERROR] Can't start server: Bind on TCP/IP port: No such file or directory
160519  9:51:04 [ERROR] Do you already have another mysqld server running on port: 3306 ?
160519  9:51:04 [ERROR] Aborting

160519  9:51:04  InnoDB: Starting shutdown...
160519  9:51:05  InnoDB: Shutdown completed; log sequence number 1595675
160519  9:51:05 [Note] wampmysqld: Shutdown complete

160519  9:51:15 [Note] Plugin 'FEDERATED' is disabled.
InnoDB: The InnoDB memory heap is disabled
InnoDB: Mutexes and rw_locks use Windows interlocked functions
InnoDB: Compressed tables use zlib 1.2.3
160519  9:51:15  InnoDB: Initializing buffer pool, size = 128.0M
160519  9:51:15  InnoDB: Completed initialization of buffer pool
160519  9:51:15  InnoDB: highest supported file format is Barracuda.
160519  9:51:15  InnoDB: 1.1.4 started; log sequence number 1595675
160519  9:51:15 [ERROR] Can't start server: Bind on TCP/IP port: No such file or directory
160519  9:51:15 [ERROR] Do you already have another mysqld server running on port: 3306 ?
160519  9:51:15 [ERROR] Aborting

160519  9:51:15  InnoDB: Starting shutdown...
160519  9:51:16  InnoDB: Shutdown completed; log sequence number 1595675
160519  9:51:16 [Note] wampmysqld: Shutdown complete

160519  9:51:36 [Note] Plugin 'FEDERATED' is disabled.
InnoDB: The InnoDB memory heap is disabled
InnoDB: Mutexes and rw_locks use Windows interlocked functions
InnoDB: Compressed tables use zlib 1.2.3
160519  9:51:36  InnoDB: Initializing buffer pool, size = 128.0M
160519  9:51:36  InnoDB: Completed initialization of buffer pool
160519  9:51:36  InnoDB: highest supported file format is Barracuda.
160519  9:51:36  InnoDB: 1.1.4 started; log sequence number 1595675
160519  9:51:36 [ERROR] Can't start server: Bind on TCP/IP port: No such file or directory
160519  9:51:36 [ERROR] Do you already have another mysqld server running on port: 3306 ?
160519  9:51:36 [ERROR] Aborting

160519  9:51:37  InnoDB: Starting shutdown...
160519  9:51:37  InnoDB: Shutdown completed; log sequence number 1595675
160519  9:51:37 [Note] wampmysqld: Shutdown complete

160519  9:51:41 [Note] Plugin 'FEDERATED' is disabled.
InnoDB: The InnoDB memory heap is disabled
InnoDB: Mutexes and rw_locks use Windows interlocked functions
InnoDB: Compressed tables use zlib 1.2.3
160519  9:51:41  InnoDB: Initializing buffer pool, size = 128.0M
160519  9:51:41  InnoDB: Completed initialization of buffer pool
160519  9:51:41  InnoDB: highest supported file format is Barracuda.
160519  9:51:41  InnoDB: 1.1.4 started; log sequence number 1595675
160519  9:51:42 [ERROR] Can't start server: Bind on TCP/IP port: No such file or directory
160519  9:51:42 [ERROR] Do you already have another mysqld server running on port: 3306 ?
160519  9:51:42 [ERROR] Aborting

160519  9:51:42  InnoDB: Starting shutdown...
160519  9:51:43  InnoDB: Shutdown completed; log sequence number 1595675
160519  9:51:43 [Note] wampmysqld: Shutdown complete

160519  9:51:51 [Note] Plugin 'FEDERATED' is disabled.
InnoDB: The InnoDB memory heap is disabled
InnoDB: Mutexes and rw_locks use Windows interlocked functions
InnoDB: Compressed tables use zlib 1.2.3
160519  9:51:51  InnoDB: Initializing buffer pool, size = 128.0M
160519  9:51:51  InnoDB: Completed initialization of buffer pool
160519  9:51:51  InnoDB: highest supported file format is Barracuda.
160519  9:51:51  InnoDB: 1.1.4 started; log sequence number 1595675
160519  9:51:52 [ERROR] Can't start server: Bind on TCP/IP port: No such file or directory
160519  9:51:52 [ERROR] Do you already have another mysqld server running on port: 3306 ?
160519  9:51:52 [ERROR] Aborting

160519  9:51:52  InnoDB: Starting shutdown...
160519  9:51:53  InnoDB: Shutdown completed; log sequence number 1595675
160519  9:51:53 [Note] wampmysqld: Shutdown complete

160519 10:12:25 [Note] Plugin 'FEDERATED' is disabled.
InnoDB: The InnoDB memory heap is disabled
InnoDB: Mutexes and rw_locks use Windows interlocked functions
InnoDB: Compressed tables use zlib 1.2.3
160519 10:12:25  InnoDB: Initializing buffer pool, size = 128.0M
160519 10:12:25  InnoDB: Completed initialization of buffer pool
160519 10:12:25  InnoDB: highest supported file format is Barracuda.
160519 10:12:25  InnoDB: 1.1.4 started; log sequence number 1595675
160519 10:12:26 [ERROR] Can't start server: Bind on TCP/IP port: No such file or directory
160519 10:12:26 [ERROR] Do you already have another mysqld server running on port: 3306 ?
160519 10:12:26 [ERROR] Aborting

160519 10:12:26  InnoDB: Starting shutdown...
160519 10:12:27  InnoDB: Shutdown completed; log sequence number 1595675
160519 10:12:27 [Note] wampmysqld: Shutdown complete

160519 10:12:31 [Note] Plugin 'FEDERATED' is disabled.
InnoDB: The InnoDB memory heap is disabled
InnoDB: Mutexes and rw_locks use Windows interlocked functions
InnoDB: Compressed tables use zlib 1.2.3
160519 10:12:31  InnoDB: Initializing buffer pool, size = 128.0M
160519 10:12:31  InnoDB: Completed initialization of buffer pool
160519 10:12:31  InnoDB: highest supported file format is Barracuda.
160519 10:12:32  InnoDB: 1.1.4 started; log sequence number 1595675
160519 10:12:32 [ERROR] Can't start server: Bind on TCP/IP port: No such file or directory
160519 10:12:32 [ERROR] Do you already have another mysqld server running on port: 3306 ?
160519 10:12:32 [ERROR] Aborting

160519 10:12:32  InnoDB: Starting shutdown...
160519 10:12:33  InnoDB: Shutdown completed; log sequence number 1595675
160519 10:12:33 [Note] wampmysqld: Shutdown complete

160519 10:12:38 [Note] Plugin 'FEDERATED' is disabled.
InnoDB: The InnoDB memory heap is disabled
InnoDB: Mutexes and rw_locks use Windows interlocked functions
InnoDB: Compressed tables use zlib 1.2.3
160519 10:12:38  InnoDB: Initializing buffer pool, size = 128.0M
160519 10:12:38  InnoDB: Completed initialization of buffer pool
160519 10:12:38  InnoDB: highest supported file format is Barracuda.
160519 10:12:39  InnoDB: 1.1.4 started; log sequence number 1595675
160519 10:12:39 [ERROR] Can't start server: Bind on TCP/IP port: No such file or directory
160519 10:12:39 [ERROR] Do you already have another mysqld server running on port: 3306 ?
160519 10:12:39 [ERROR] Aborting

160519 10:12:39  InnoDB: Starting shutdown...
160519 10:12:40  InnoDB: Shutdown completed; log sequence number 1595675
160519 10:12:40 [Note] wampmysqld: Shutdown complete

160519 10:12:54 [Note] Plugin 'FEDERATED' is disabled.
InnoDB: The InnoDB memory heap is disabled
InnoDB: Mutexes and rw_locks use Windows interlocked functions
InnoDB: Compressed tables use zlib 1.2.3
160519 10:12:54  InnoDB: Initializing buffer pool, size = 128.0M
160519 10:12:54  InnoDB: Completed initialization of buffer pool
160519 10:12:54  InnoDB: highest supported file format is Barracuda.
160519 10:12:54  InnoDB: 1.1.4 started; log sequence number 1595675
160519 10:12:54 [ERROR] Can't start server: Bind on TCP/IP port: No such file or directory
160519 10:12:54 [ERROR] Do you already have another mysqld server running on port: 3306 ?
160519 10:12:54 [ERROR] Aborting

160519 10:12:54  InnoDB: Starting shutdown...
160519 10:12:56  InnoDB: Shutdown completed; log sequence number 1595675
160519 10:12:56 [Note] wampmysqld: Shutdown complete

160519 10:13:21 [Note] Plugin 'FEDERATED' is disabled.
InnoDB: The InnoDB memory heap is disabled
InnoDB: Mutexes and rw_locks use Windows interlocked functions
InnoDB: Compressed tables use zlib 1.2.3
160519 10:13:21  InnoDB: Initializing buffer pool, size = 128.0M
160519 10:13:21  InnoDB: Completed initialization of buffer pool
160519 10:13:21  InnoDB: highest supported file format is Barracuda.
160519 10:13:21  InnoDB: 1.1.4 started; log sequence number 1595675
160519 10:13:21 [ERROR] Can't start server: Bind on TCP/IP port: No such file or directory
160519 10:13:21 [ERROR] Do you already have another mysqld server running on port: 3306 ?
160519 10:13:21 [ERROR] Aborting

160519 10:13:21  InnoDB: Starting shutdown...
160519 10:13:22  InnoDB: Shutdown completed; log sequence number 1595675
160519 10:13:22 [Note] wampmysqld: Shutdown complete

最佳答案

看起来您有 2 个 MYSQL 服务器正在运行。

当您安装 MYSQL Workbench 时,它还安装了另一个 MYSQL Server。两者都使用端口 3306。一个 MySQL Server 实例对于任何人来说都足够了。

Workbench 附带的 MYSQL Server 设置为“启动时自动启动”,但 WAMPServer 仅在启动 WAMPServer 时才启动 MYSQL Server。所以WAMPServer中的那个说别人抢了3306端口,我无法启动。

你只需要一台MYSQL Server就可以运行100个数据库,所以我建议你卸载WorkBench自带的MYSQL Server。

完全卸载 WorkBench 可能会更容易。然后重新安装它,但没有附带的MYSQL Server实例。

关于php - WAMP 服务器不允许访问 PHPMyAdmin,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37318564/

相关文章:

php - 使用从父类(super class)到子类的隐藏属性

php - undefined variable 当值为空时

windows - Apache(WAMP)问题 : “AH00404: Child: Unable to read socket data from parent”

php - wamp 服务器中错误的 PHP date() 输出

python - 如何使用 python 脚本从我的树莓派访问 Windows 桌面上 wamp 服务器中的外部 mysql 数据库?

php - Laravel route()和url()函数返回错误的子域

php - 使用 AJAX 登录 Facebook 获取访问 token

导入行时 MySQL "pileup"

php - 无法让查询在 php CRUD 系统中工作以检查重复项

sql - 将带有重复项的 MySQL 表迁移到带有 UNIQUE 约束的另一个表的最佳方法