重要提示:如果你的mysql服务总是无法启动,则在安装的时候,将mysql服务换个名称,比如 mysql501
1. 如果你的mysql实例配置向导失败了,取消此向导,进入到 windows系统的 服务界面(通过在 运行 中 录入 services.msc ,然后回车可进入服务界面),将mysql服务停止
2. 再次执行mysql实例向导(此时mysql服务应该启动了)
—可通过 开始->mysql ->实例配置向导 打开实例配置向导
3.如果第4步失败(Apply Security Settings),取消此向导
4. 创建一个 txt文件 (例如 C:\mysqlpassword.txt)),文件内容如下:
UPDATE mysql.user SET Password=PASSWORD(’mypassword’) WHERE User=’root’;
FLUSH PRIVILEGES;
5.打开命令行窗口并且执行如下命令
“C:\Program Files\MySQL\MySQL Server 5.1\bin\mysqld” –defaults-file=”C:\Program Files\MySQL\MySQL Server 5.1\my.ini” –init-file=C:\mysqlpassword.txt –standalone –console
执行完后,保持窗口不关闭
6.打开另外一个命令行窗口,执行如下命令
“C:\Program Files\MySQL\MySQL Server 5.1\bin\mysqladmin” -u root -p shutdown
(输入在 mysqlpassword.txt 中指定的密码)
7、再次执行 mysql 实例配置向导,Apply Security Settings应该能成功了
祝你好运!
相关推荐
win7 系统 the security settings could not be applied to the database 在安装mysql的时候,就会遇到以下错误。遇到错误不可怕,怕的就是被错误所击倒! The security settings could not be applied to the ...
the security settings could not be applied to the database (error 1045 MySQL)
自己用的解决 "The Network Adapter could not establish the connection" 的连接oracle问题。网上查的一些片段资料。主要是用自己去公司用的。
MYSQL安装出现could not start the service mysql error0处理
mysql密码丢失&&mysql apply security settings错误.pdf
(DBX Error: Driver could not be properly initialized. Client library may be missing, not installed properly, ...),我找到了合适的libmysql.dll和dbxmys.dll组合,把下面这个libmysql.dll拷贝到XE的bin目录...
解决apply security settings报错
主要介绍了mysql启动报错MySQL server PID file could not be found,具有一定的参考价值,感兴趣的小伙伴们可以参考一下
今天查看mysql日志的时候发现[Warning] IP address '10.0.0.220' could not be resolved: Name or service not known,原来是mysql DNS反解:skip-name-resolve的原因,屏蔽一下就可以了
win10安装mysql报错The procedure entry point fesetround could not be located in the dynamic link library-附件资源
主要为大家详细介绍了解决MySQL安装重装时出现could not start the service mysql error:0问题的方法,感兴趣的小伙伴们可以参考一下
kettle 连接mysql oracle 驱动包kettle报错Driver class’sun.jdbc.odbc.JdbcOdbcDriver’ could not be found,make sure the sun.jdbc.odbc.JdbcOdbcDriver 具体参考...
java代码执行hive相关ktr时报错: database type with plugin id [HIVE2] couldn't be found! 解决:kettle-core-7.1.0.0-12.jar适配hive后的包。具体步骤请查看...
Driver class 'sun.jdbc.odbc.JdbcOdbcDriver' could not be found, make sure the 'MS SQL Server' driver (jar file) is installed. ----- 所以把mysql-connector-java-5.1.49-bin.jar放到lib文件夹下
我们现在一般网站都是利用的MySQL数据库搭建网站的,但是在网上看到很多网友吐槽数据库连接不上的问题,现在我就结合相关资料向提出一些我个人的见解,希望对大家解决问题有帮助。 一般MySQL连接不上,可能有两大...