Indomite

Wampserver下的几个常见的问题

最近在弄Wampserver,发现有几个问题存留在这里,今天就来解决一下吧

  1. 首先就是关于报错的这个一个问题:
  2. 第二就是关于一直不变绿的原因

关于报错:
在我的电脑上,因为很久不太用这个了,所以出现了一些问题,我在打开Wampserver的时候他是黄色的,一直没有变绿不说,而且还报错了,他说:D:/wamp64 mysql or php PATH,具体好像有点记不清了(但是没有关系,解决了),然后点进去,出现一系列的东西,大概就是解释了报错的原因:

error: D:/wamp64 or PHP in PATH - Stack Overflow

在这里插入图片描述
这就是点进去之后的截图,大致的意思就是我们的mysql出问题了:
然后去谷歌查了一下,说的是:
Using paths on Wampserver\'s PHP or MySQL versions in the PATH environment variable is strongly discouraged or even prohibited.
Wampserver does not create any paths on PHP or MySQL versions. Wampserver does not use the paths declared in the PATH environment variable.
Using a path on Wampserver or on a version of PHP or MySQL is detrimental to the proper functioning of Wampserver and - for sure - will create problems for you in the future.
Using the PATH to launch applications is a survivorship of the past and it will cause you big problems if you change versions of PHP.
There is absolutely NO NEED to add anything into the Windows PATH because that will ALWAYS just cause you issues later when you change versions of either PHP or MySQL.
This was not checked in versions before version 3.0.3. It is now verified following the problems encountered by users when they wanted to change version PHP or MySQL. For example with a PATH on PHP version 5.6.34 makes that when we change version, for example PHP 7.2.0, this new version will use the php.ini of the PATH version, i.e. 5.6.34, so multiple errors and a non functioning of PHP.
This is because, by default, PHP or MySQL look for their configuration file (php.ini or my.ini) first in the PATH paths before looking in their own installation paths.

翻译过来呢,就是说:
  使用路径Wampserver的PHP和MySQL版本不提倡在PATH环境变量,甚至禁止。
  Wampserver不创建任何路径在PHP和MySQL版本。Wampserver不使用路径在PATH环境变量声明。
  使用路径在Wampserver或版本的PHP和MySQL的正常运转是有害的Wampserver,肯定将在未来为您创建的问题。
  使用启动应用程序是一个生存之路过去的,它会让你大问题如果你改变版本的PHP。
  绝对没有什么需要添加到Windows路径,因为那永远只给你问题后,你改变了版本的PHP和MySQL。
  
  这是版本3.0.3之前不检查版本。现在验证用户遇到的问题后,当他们想要改变版本PHP和MySQL。例如路径在PHP版本5.6.34使,当我们改变,例如PHP 7.2.0

也就是说电脑在安装了Wampserver的时候是不支持使用Mysql的环境变量的,找到环境变量配置之后把有关于MySQL的环境变量配置删了,重启就可以解决了

分类:

技术点:

相关文章:

  • 2022-01-21
  • 2022-12-23
  • 2021-06-28
  • 2022-01-07
  • 2021-11-28
  • 2021-05-10
  • 2021-07-23
  • 2021-12-18
猜你喜欢
  • 2021-05-13
  • 2021-04-28
  • 2021-11-19
  • 2021-12-02
  • 2021-07-12
  • 2021-09-23
  • 2021-10-16
相关资源
相似解决方案