转载
http://www.onlycto.com/tech/1000/61.html
引用
相信有朋友遇到过这个问题,特别是不是第一次安装mysql的朋友。
说明:我所说的都是在windowsXP系统下的mysql问题
问题描述一般是
“The security setting could not be applied to the database because the connection has
failed with the following error”
网上的办法一般是
1、将原来的mysql卸载掉,然后把安装目录手动清除
2、在注册表中查询mysql,删除注册表信息
3、将3306(mysql端口)在防火墙中放行
以上两步,如果能解决问题最好了,你可以试试
。
我的系统是win7,没成功,我是用下面的方法解决的
引用
不过,我的问题还是通过下面的办法解决。
重要提示:如果你的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应该能成功了
祝你好运!
此办法是从此http://bugs.mysql.com/bug.php?id=18555找到的
虽然执行第6步时报错了,但是不影响,直接进行第7步即可
错误是
C:\Program Files\MySQL\MySQL Server 5.5\bin\mysqladmin: connect to server at 'lo
calhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: YES)'
分享到:
相关推荐
自己用的解决 "The Network Adapter could not establish the connection" 的连接oracle问题。网上查的一些片段资料。主要是用自己去公司用的。
(DBX Error: Driver could not be properly initialized. Client library may be missing, not installed properly, ...),我找到了合适的libmysql.dll和dbxmys.dll组合,把下面这个libmysql.dll拷贝到XE的bin目录...
[08001] Could not create connection to database server. Attempted reconnect 3 times. Giving up. 解决办法:在url后面拼接?serverTimezone=UTC 连接成功后数据库不显示表 通过设置解决: scheme选择当前...
在安装MySQL过程中,有时会遇到一个常见的错误提示:“Could not start the service MySQL Error 0”。这个错误意味着MySQL服务无法启动,通常与系统环境、配置文件、依赖库或安装过程中的某些问题有关。以下将详细...
The Guide concludes with recent performance benchmarks conducted with the MySQL Cluster database, an overview of how MySQL Cluster can be integrated with other MySQL storage engines, before ...
MySQL安装失败是许多开发者和DBA经常遇到的问题,本文档总结了MySQL安装可能遇到的各种问题及解决方案,从而帮助开发者和DBA快速解决安装问题。 一、写入配置文件错误 在安装MySQL时,可能会出现写入配置文件错误...
我们现在一般网站都是利用的MySQL数据库搭建网站的,但是在网上看到很多网友吐槽数据库连接不上的问题,现在我就结合相关资料向提出一些我个人的见解,希望对大家解决问题有帮助。 一般MySQL连接不上,可能有两大...
Driver class 'org.gjt.mm.mysql.Driver' could not be found, make sure the 'MySQL' driver (jar file) is installed. org.gjt.mm.mysql.Driver】即(由于名为“org.gjt.mm.mysql.Driver”的数据库驱动类没有发现...
在使用MyEclipse集成开发环境和Hibernate框架进行Java Web应用开发时,可能会遇到一个常见的问题,即"Could not get list of suggested identity strategies from database"。这个错误信息表明Hibernate在尝试获取...
java代码执行hive相关ktr时报错: database type with plugin id [HIVE2] couldn't be found! 解决:kettle-core-7.1.0.0-12.jar适配hive后的包。具体步骤请查看...
在使用MySQL数据库的过程中,有时会遇到“MySQL server PID file could not be found”的错误,这是一个常见的启动问题,通常意味着MySQL服务器无法找到其进程ID(PID)文件,该文件用于记录数据库服务的运行状态。...
Host 主机名 is not allowed to connect the mysql server 原因:没有授权远程访问mysql 解决方法: cmd 中运行mysql -u root -p(如果报mysql 不是内部或外部命令,找到安装mysql对应的bin文件夹运行mysql.exe,...
win10安装mysql报错The procedure entry point fesetround could not be located in the dynamic link library-附件资源
问题: mysql DNS反解:skip-name-resolve 错误日志有类似警告: 1.120119 16:26:04 [Warning] IP address ‘192.168.1.10’ could not be resolved: Name or service not known 2.120119 16:26:04 [Warning] IP ...
check the manual that corresponds to your MySQL server version for the right syntax to use near ‘(0) NOT NULL, endTime datetime(0) NOT NULL,avaliableTime int(8) NOT N’ at line 5 今天帮一个朋友调试...
当各位在安装、重装时出现could not start the service mysql error:0 原因: 卸载mysql时并没有完全删除相关文件和服务,需要手动清除。 安装到最后一步execute时不能启动服务的解决方法: 首先,在管理工具->...
检查你所使用的数据库(比如MySQL)的JDBC驱动是否为最新版本,如果不是,升级到最新版本通常可以解决问题。例如,可以更新到像`mysql-connector-java-5.1.15-bin.jar`这样的较新版本。 4. **在线资源**:除了上述...
在安装MySQL时,第一次没有问题。但是重装时总是出现问题。主要原因是卸载时没有清除干净。常见的问题是最后安装界面的第三部、第四部出现问题。
安装失败的解决办法 securitysettingscouldnotbeappliedtothedatabasebecausetheconnection failedwiththefollowingerror. Nr.1045 deniedforuser‘root’@'localhost’(usingpassword:YES) ...