amphp / mysql

An async MySQL client for PHP, optimizing database interactions with efficient non-blocking capabilities. Perfect for responsive, high-performance applications.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fatal error: Cannot use Amp\Sql\Pool as Pool because the name is already in use

Mohsen322 opened this issue · comments

hi
i just wanna try the example code but got this error:

( ! ) Fatal error: Cannot use Amp\Sql\Pool as Pool because the name is already in use in D:\wamp64\www\ampphp\mySQL\vendor\amphp\mysql\src\StatementPool.php on line 7

what should id do?

This sounds like an issue with how you're including the source. We recommend always using composer. Closing this as the issue is rather old (sorry it went ignored for so long). Feel free to reopen this issue or create a new one if you need further assistance.