最好好5.7的my.ini备份一下, 因为my.ini如果有属性不识别时 C:\Windows\system32>mysqld --initialize 2024-09-28T08:20:31.234808Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see doc umentation for more details). 2024-09-28T08:20:31.234808Z 0 [Warning] 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'E RROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release. 2024-09-28T08:20:31.234808Z 0 [ERROR] --initialize specified but the data direct ory has files in it. Aborting. 2024-09-28T08:20:31.234808Z 0 [ERROR] Aborting 如果要再次执行,需要把Data目录里的内容清空 C:\Windows\system32>mysqld -install mysql57 Service successfully installed. C:\Windows\system32>net start mysql57 mysql57 服务正在启动 . mysql57 服务无法启动。 服务没有报告任何错误。 请键入 NET HELPMSG 3534 以获得更多的帮助。 C:\Windows\system32>mysqld --initialize C:\Windows\system32>net start mysql57 mysql57 服务正在启动 . mysql57 服务已经启动成功。 C:\Windows\system32>mysql -uroot -p Enter password: ************ ERROR 1130 (HY000): Host '::1' is not allowed to connect to this MySQL server 加上skip-grant-tables update mysql.user set authentication_string=password("root") where user="root" C:\Windows\system32>net stop mysql57 mysql57 服务正在停止. mysql57 服务已成功停止。 C:\Windows\system32>mysql -uroot -p Enter password: ** ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061) C:\Windows\system32>net start mysql57 mysql57 服务正在启动 . mysql57 服务已经启动成功。 C:\Windows\system32>mysql -uroot -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 2 Server version: 5.7.26 MySQL Community Server (GPL) Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> exit; Bye C:\Windows\system32>net stop mysql57 mysql57 服务正在停止.. mysql57 服务已成功停止。 C:\Windows\system32> |
本帖最后由 syant 于 2024-9-28 16:08 编辑 当计算机系统提示丢失MSVCR120.dll时,需要安装Microsoft Visual C++ 2013 Redistributable Package。 MSVCR120.dll是Microsoft Visual C++ Redistributable Package的一部分,特别是与Visual Studio 2013版本相关。这个DLL文件对于许多使用C++编写的应用程序来说是必需的,因为它提供了运行时支持,包括内存管理、标准C/C++函数库等关键功能。 在解决MSVCR120.dll丢失的问题时,最直接的方法是从微软官方网站下载并安装相应版本的Microsoft Visual C++ Redistributable Package。根据操作系统的位数(32位或64位),选择合适的安装包进行下载和安装。 此外,如果遇到MSVCR120.dll丢失的问题,建议先尝试重新安装或更新相关的软件或游戏,因为有时这些程序会在安装过程中自动包含所需的DLL文件。同时,保持操作系统和所有应用程序的最新状态也是预防此类问题的有效方法。 总的来说,面对MSVCR120.dll丢失的提示,应优先考虑安装Microsoft Visual C++ 2013 Redistributable Package,并确保所有依赖此DLL的程序都能正常运行。 安装 微软常用运行库合集 2021.02.17_#4282398951#.exe |
Powered by Discuz! X3.2
© 2001-2013 Comsenz Inc.