作者:NarratorWang | 来源:互联网 | 2023-09-01 10:38
安装MYSQL的时候一直卡在startingserver这里,求破之前在网上看到过一个帖子说是到这里的时候禁用某个服务就可以了,然后当时也成功了但是现在找不到这个帖子了求破先谢谢了详情请看
安装MYSQL的时候一直卡在starting server这里,求破
之前在网上看到过一个帖子说是到这里的时候禁用某个服务就可以了,然后当时也成功了
但是现在找不到这个帖子了
求破 先谢谢了
详情请看截图
61 个解决方案
让你找到文件,把文件中的内容贴出来,否则别人怎么分析是什么问题?
前面的东西没有安完整,在安装的时候需要将所有东西都安装到本地硬盘
我安装时也出现这个情况,搞了一天没搞懂,最后我看到别人说把所有的防火墙关了,就装好了,还不知道什么情况呢。。。 之前是一直安装都出现无法启动服务。关了防火墙和安全卫士装一次就可以了。。。。。
麻烦问下您的问题解决没有,怎么解决的,遇到同样的问题,很烦人!
表示也出现同样的问题,防火墙也没开 ,注册表和相关的文件都删除了,XP系统的 装了N遍 请问有大牛帮忙解决下么~~~~~
楼主我和你一样的问题,今天解决了,你安装到这一步卡住之后打开C:\ProgramData\MySQL\MySQL Server 5.5\data下面的.err文件看看,用记事本打开,内容是否类似于:
150318 10:33:48 [Note] Plugin 'FEDERATED' is disabled.
150318 10:33:48 InnoDB: The InnoDB memory heap is disabled
150318 10:33:48 InnoDB: Mutexes and rw_locks use Windows interlocked functions
150318 10:33:48 InnoDB: Compressed tables use zlib 1.2.3
150318 10:33:48 InnoDB: Error: unable to create temporary file; errno: 2
150318 10:33:48 [ERROR] Plugin 'InnoDB' init function returned error.
150318 10:33:48 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
150318 10:33:48 [ERROR] Unknown/unsupported storage engine: INNODB
150318 10:33:48 [ERROR] Aborting
如果是的话,那就在C:\ProgramData\MySQL\MySQL Server 5.5下面的my.ini最后加入一句:
tmpdir="E:/MySqltemp"
这个文件夹必须是已经建好的,然后再配置或者再装,再弄的时候就修改my.ini文件就可以成功执行了!
这个问题,我是这样解决的:安装到最后,不是一直启动中吗?不是启动不起来吗?那好,咱就手动启动它,打开服务,找到你的mysql服务,这时,应该是未启动的,右键,启动,成功后,回到安装页面,你会惊奇的发现,好了,一切都进展顺利,安装完成!希望,这个办法,也可以帮到你们!
根本原因是服务里面启动不了,手动启动还是自动启动都不行,IIS都删了,也没有旧文件,一样不行,真麻烦Mysql
我昨天也是一直安装没有成功,提示这个信息,楼上的方法也试了,貌似不好用,我在C盘里把所有关于mysql文件删掉和清掉注册表里所有关于mysql的注册信息都不管用,期间安装删除重启了n次都不管用,实在没辙,我从官网上下载了mysql的免安装zip包,按照这个百度经验:
http://jingyan.baidu.com/article/f3ad7d0ffc061a09c3345bf0.html,一次安装就成功了……
mysql卸载不彻底,再次安装就会出现这种情况。解决方法http://jingyan.baidu.com/article/22a299b51a43d49e19376aee.html
我想问下,用MYSQL为啥不用linux的服务器,怎么都用windows
mysql服务手动启动不成功 还有别的方法解决吗? 求大神
2016-07-23T21:39:36.800300Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2016-07-23T21:39:38.820672Z 0 [Warning] InnoDB: New log files created, LSN=45790
2016-07-23T21:39:39.307969Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
2016-07-23T21:39:39.558646Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: f5786c18-511d-11e6-bbe7-4ccc6a3caba9.
2016-07-23T21:39:39.629853Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
2016-07-23T21:39:39.715077Z 1 [Note] A temporary password is generated for root@localhost: uy!Ch+eHv0wo
Beginning configuration step: Stopping Server [if necessary]
Ended configuration step: Stopping Server [if necessary]
Beginning configuration step: Writing configuration file
Ended configuration step: Writing configuration file
Beginning configuration step: Updating firewall
Adding firewall rule for MySQL57 on port 3306.
Successfully added firewall rule.
Ended configuration step: Updating firewall
Beginning configuration step: Adjusting Windows service [if necessary]
Attempting to grant Network Service require filesystem permissions.
Granted permissions.
Adding new service
New service added
Ended configuration step: Adjusting Windows service [if necessary]
Beginning configuration step: Initializing Database [if necessary]
Deleting Data folder shipped
Attempting to run MySQL Server with --Initialize-insecure
Running process: C:\Program Files (x86)\MySQL\MySQL Server 5.7\bin\mysqld.exe --defaults-file="C:\ProgramData\MySQL\MySQL Server 5.7\my.ini" --initialize-insecure=on --console
Waiting for the server stops: C:\Program Files (x86)\MySQL\MySQL Server 5.7\bin\mysqld.exe --defaults-file="C:\ProgramData\MySQL\MySQL Server 5.7\my.ini" --initialize-insecure=on --console
2016-10-19T12:53:56.992807Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2016-10-19T12:53:56.992807Z 0 [Warning] 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release.
2016-10-19T12:54:03.080116Z 0 [Warning] InnoDB: New log files created, LSN=45790
2016-10-19T12:54:04.660279Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
mysqld: File '.\鏉庡€?slow.log' not found (Errcode: 2 - No such file or directory)
2016-10-19T12:54:04.905418Z 0 [ERROR] Could not use 鏉庡€?slow.log for logging (error 2 - No such file or directory). Turning logging off for the server process. To turn it on again: fix the cause, then either restart the query logging by using "SET GLOBAL SLOW_QUERY_LOG=ON" or restart the MySQL server.
2016-10-19T12:54:04.923429Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: 1db6cdae-95fb-11e6-832b-40167e95efb6.
2016-10-19T12:54:05.033505Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
2016-10-19T12:54:05.073536Z 1 [Warning] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.
Finished initialize database
Ended configuration step: Initializing Database [if necessary]
Beginning configuration step: Starting Server
Starting MySQL as a service
这个也是卡在这里
Beginning configuration step: Stopping Server [if necessary]
Ended configuration step: Stopping Server [if necessary]
Beginning configuration step: Writing configuration file
Ended configuration step: Writing configuration file
Beginning configuration step: Updating firewall
Adding firewall rule for MySQL57 on port 3306.
Successfully added firewall rule.
Ended configuration step: Updating firewall
Beginning configuration step: Adjusting Windows service [if necessary]
Attempting to grant Network Service require filesystem permissions.
Granted permissions.
Adding new service
New service added
Ended configuration step: Adjusting Windows service [if necessary]
Beginning configuration step: Initializing Database [if necessary]
Deleting Data folder shipped
Attempting to run MySQL Server with --Initialize-insecure
Running process: C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe --defaults-file="C:\ProgramData\MySQL\MySQL Server 5.7\my.ini" --initialize-insecure=on --console
Waiting for the server stops: C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe --defaults-file="C:\ProgramData\MySQL\MySQL Server 5.7\my.ini" --initialize-insecure=on --console
2016-12-05T05:01:21.331782Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2016-12-05T05:01:21.331782Z 0 [Warning] 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release.
2016-12-05T05:01:24.644370Z 0 [Warning] InnoDB: New log files created, LSN=45790
2016-12-05T05:01:25.488084Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
mysqld: File '.\鍛嗙惔鐞?slow.log' not found (Errcode: 2 - No such file or directory)
2016-12-05T05:01:25.675634Z 0 [ERROR] Could not use 鍛嗙惔鐞?slow.log for logging (error 2 - No such file or directory). Turning logging off for the server process. To turn it on again: fix the cause, then either restart the query logging by using "SET GLOBAL SLOW_QUERY_LOG=ON" or restart the MySQL server.
2016-12-05T05:01:25.691205Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: dfb744d7-baa7-11e6-8b42-28d2442fc148.
2016-12-05T05:01:25.753757Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
2016-12-05T05:01:25.753757Z 1 [Warning] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.
Finished initialize database
Ended configuration step: Initializing Database [if necessary]
Beginning configuration step: Starting Server
Starting MySQL as a service
大神们,怎么解决啊,欲哭无泪
我的也是这个问题。但是我的是重装的时候出现的,第一次是没出问题的
没有.err文件 手动打开也打不开。我是第一次装MySql 怎么就有这种问题啊? 大神求助啊 弄了好几天了
安装不成功一定是没有卸载干净!安装不成功一定是没有卸载干净!安装不成功一定是没有卸载干净!重要的事情说三遍,连续安装了几次都不行,换了好几个安装包也不行,都打算装系统了,最后放手一搏,按照http://www.jb51.net/article/43789.htm的方式痛痛快快的删了一波,尤其是最后删除文件的时候,直接在计算机中检索mysql,将文件都删干净,然后重新安装,一次成功
也是遇到这个问题,自动执行到启动服务时卡住,手动启动失败,控制台未记录失败原因,且无法找到mysql错误文件。
百度资料了一个半小时,重装了3次,在windows设置里切换到'开发者模式'后,一次性通过。