localhost phpMyAdmin 无法打开,因为我删除了其中的 composer 文件夹
localhost phpMyAdmin wont open because I deleted composer folder inside it
我不熟悉 php 和 php 中 composer 的用法。我正在使用 windows 10.
在尝试删除以前安装的 composer 时,我想我错误地删除了 phpMyAdmin 中的 composer 文件夹。现在我在尝试访问 http://localhost/phpmyadmin/ 时遇到以下错误:
Warning: require_once(C:\xampp\phpMyAdmin\vendor/composer/autoload_real.php): failed to open stream: No such file or directory in C:\xampp\phpMyAdmin\vendor\autoload.php on line 5
Fatal error: require_once(): Failed opening required 'C:\xampp\phpMyAdmin\vendor/composer/autoload_real.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\phpMyAdmin\vendor\autoload.php on line 5
在默认情况下 phpMyAdmin 中是否应该有一个 composer 文件夹?我是否删除了 mysql 使用的内容?
如何解决?
vendor
文件夹是必需的。如果您的 phpmyadmin
文件夹中存在 composer.json
文件,您可以 运行 composer install
将所有依赖项提取到 vendor
文件夹中。
首先转到 xampp>phpMyAdmin,然后在 git bash 或任何其他 terminal.I 上 运行“composer install”,希望它能工作
我不熟悉 php 和 php 中 composer 的用法。我正在使用 windows 10.
在尝试删除以前安装的 composer 时,我想我错误地删除了 phpMyAdmin 中的 composer 文件夹。现在我在尝试访问 http://localhost/phpmyadmin/ 时遇到以下错误:
Warning: require_once(C:\xampp\phpMyAdmin\vendor/composer/autoload_real.php): failed to open stream: No such file or directory in C:\xampp\phpMyAdmin\vendor\autoload.php on line 5
Fatal error: require_once(): Failed opening required 'C:\xampp\phpMyAdmin\vendor/composer/autoload_real.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\phpMyAdmin\vendor\autoload.php on line 5
在默认情况下 phpMyAdmin 中是否应该有一个 composer 文件夹?我是否删除了 mysql 使用的内容?
如何解决?
vendor
文件夹是必需的。如果您的 phpmyadmin
文件夹中存在 composer.json
文件,您可以 运行 composer install
将所有依赖项提取到 vendor
文件夹中。
首先转到 xampp>phpMyAdmin,然后在 git bash 或任何其他 terminal.I 上 运行“composer install”,希望它能工作