Windows下xampp的安装及MySQL无法启动问题

时间:2024-03-19 09:59:02

一、安装时出现的疑问和问题
1.安装时
it seems you have an antivirus running.In some cases,this may slow down or interfere the installation of the software.please visit the following link to learn more about this. http://apachefriends.org/en/faq-xampp-windows.htm#antivirus/ Continue with installation?
这个提示表示你的计算机正有一个防病毒软件运行,可能会影响到安装。
关闭防毒软件继续安装即可。

important!because an activated user account control(UAC) on your sytem some functions of XAMPP are possibly restricted.with UAC please avoid to install XAMPP to C:\Program files(x86)(missing write permisssions).Or deactivate UAC with msconfig after this setup.
这个提示表示你的电脑受到windows账号的控制(或者其他的账号),并且因此可能会导致你的XAMPP软件收到一些权限的控制。
安装的时候不要安装到c盘下,安装到别的磁盘就可了。

2.安装后
16:20:06 [main] You are not running with administrator rights! This will work for
16:20:06 [main] most application stuff but whenever you do something with services
16:20:06 [main] there will be a security dialogue or things will break! So think
16:20:06 [main] about running this application with administrator rights!
–表示你的XAMPP没有开启管理者权限,可能会让xampp运行收到影响。
:在XAMPP的安装文件夹下,右键xampp的属性,在兼容性一栏中勾选“以管理员的身份运行”,重新运行XAMPP,出现Running with Administrator rights - good!

二、已经在系统中安装了mysql,导致冲突,xampp中的MySQL无法启动
XAMPP中的情况是这样的

10:47:47 [mysql] MySQL Service detected with wrong path
10:47:47 [mysql] Change XAMPP MySQL and Control Panel settings or
10:47:47 [mysql] Uninstall/disable the other service manually first
10:47:47 [mysql] Found Path: c:\xampp\mysql\bin\mysqld.exe --defaults-file=c:\xampp\mysql\bin\my.ini mysql
10:47:47 [mysql] Expected Path: d:\xampp\mysql\bin\mysqld.exe --defaults-file=d:\xampp\mysql\bin\my.ini mysql

打开cmd窗口
使用sc query下mysql这个服务
命令:
sc query mysql
可以看到,mysql服务是存在的,status是stopped
Windows下xampp的安装及MySQL无法启动问题
删除mysql服务
命令:
sc delete mysql
Windows下xampp的安装及MySQL无法启动问题
再查询下,看看mysql服务还在不在
命令:
sc query mysql
Output:
[SC] EnumQueryServicesStatus:OpenService 失败 1060:
指定的服务未安装。
Windows下xampp的安装及MySQL无法启动问题
重启一下啊xampp,再次启动MySQL,可以正常启动。