redmine 无法登录 mysql 服务器_Redmine 数据库连接错误
/********************************************************************
* Redmine 数据库连接错误
* 说明:
* OpenMediaVault上的Redmine出现连接错误,目前不知道是我自己不小心
* 把mysql的密码修改了,还是因为被攻击了,先记录一下。
*
* 2016-8-17 深圳 南山平山村 曾剑锋
*******************************************************************/一、参考文档:1. 完整过程解决 ERROR 1045 (28000): Access denied for user 'mysql'@'localhost' (usingpassword: NO)
http://blog.csdn.net/nel0511/article/details/13091163
二、错误现象:
root@workflow:/etc# ruby /usr/share/redmine/bin/rails server -p3000 webrick -e production &[1] 2828root@workflow:/etc# =>Booting WEBrick=> Rails 3.1.8 application starting in production on http://0.0.0.0:3000
=> Run `rails server -h` formore startup options=> Notice: server is listening on all interfaces (0.0.0.0). Consider using 127.0.0.1 (--binding option)=> Ctrl-C to shutdown server
Exiting/usr/lib/ruby/vendor_ruby/mysql2/client.rb:70:in `connect': Access denied for user'root'@'localhost'(using password: YES) (Mysql2::Error)
from /usr/lib/ruby/vendor_ruby/mysql2/client.rb:70:in `initialize' from /usr/lib/ruby/vendor_ruby/active_record/connection_adapters/mysql2_adapter.rb:18:in `new' from /usr/lib/ruby/vendor_ruby/active_record/connection_adapters/mysql2_adapter.rb:18:in `mysql2_connection' from /usr/lib/ruby/vendor_ruby/active_record/connection_adapters/abstract/connection_pool.rb:435:in `new_connection' from /usr/lib/ruby/vendor_ruby/active_record/connection_adapters/abstract/connection_pool.rb:445:in `checkout_new_connection' from /usr/lib/ruby/vendor_ruby/active_record/connection_adapters/abstract/connection_pool.rb:416:in `acquire_connection' from /usr/lib/ruby/vendor_ruby/active_record/connection_adapters/abstract/connection_pool.rb:351:in `block in checkout' from /usr/lib/ruby/1.1.0/monitor.rb:211:in `mon_synchronize' from /usr/lib/ruby/vendor_ruby/active_record/connection_adapters/abstract/connection_pool.rb:350:in `checkout' from /usr/lib/ruby/vendor_ruby/active_record/connection_adapters/abstract/connection_pool.rb:265:in `block in connection' from /usr/lib/ruby/1.1.0/monitor.rb:211:in `mon_synchronize' from /usr/lib/ruby/vendor_ruby/active_record/connection_adapters/abstract/connection_pool.rb:264:in `connection' from /usr/lib/ruby/vendor_ruby/active_record/connection_adapters/abstract/connection_pool.rb:541:in `retrieve_connection' from /usr/lib/ruby/vendor_ruby/active_record/connection_handling.rb:113:in `retrieve_connection' from /usr/lib/ruby/vendor_ruby/active_record/connection_handling.rb:87:in `connection' from /usr/lib/ruby/vendor_ruby/active_record/model_schema.rb:209:in `table_exists?' from /usr/lib/ruby/vendor_ruby/active_record/attribute_methods/primary_key.rb:99:in `get_primary_key' from /usr/lib/ruby/vendor_ruby/active_record/attribute_methods/primary_key.rb:84:in `reset_primary_key' from /usr/lib/ruby/vendor_ruby/active_record/attribute_methods/primary_key.rb:72:in `primary_key' from /usr/lib/ruby/vendor_ruby/active_record/mass_assignment_security/attribute_assignment.rb:15:in `attributes_protected_by_default' from /usr/lib/ruby/vendor_ruby/active_model/mass_assignment_security.rb:332:in `block in protected_attributes_configs' from /usr/lib/ruby/vendor_ruby/active_model/mass_assignment_security.rb:217:in `yield' from /usr/lib/ruby/vendor_ruby/active_model/mass_assignment_security.rb:217:in `protected_attributes' from /usr/lib/ruby/vendor_ruby/active_model/mass_assignment_security.rb:123:in `block in attr_protected' from /usr/lib/ruby/vendor_ruby/active_model/mass_assignment_security.rb:122:in `each' from /usr/lib/ruby/vendor_ruby/active_model/mass_assignment_security.rb:122:in `attr_protected' from /usr/share/redmine/app/models/custom_field.rb:32:in `' from /usr/share/redmine/app/models/custom_field.rb:18:in `' from /usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:247:in `require' from /usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:247:in `block in require' from /usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:232:in `load_dependency' from /usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:247:in `require' from /usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:348:in `require_or_load' from /usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:480:in `load_missing_constant' from /usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:180:in `const_missing' from /usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:512:in `load_missing_constant' from /usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:180:in `const_missing' from /usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:512:in `load_missing_constant' from /usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:180:in `const_missing' from /usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:512:in `load_missing_constant' from /usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:180:in `const_missing' from /usr/share/redmine/lib/redmine/field_format.rb:80:in `field_attributes' from /usr/share/redmine/lib/redmine/field_format.rb:83:in `
三、解决办法:
修改数据库root密码。
redmine 无法登录 mysql 服务器_Redmine 数据库连接错误相关推荐
- phpmyadmin #1045错误无法登录mysql服务器的解决方法
小编在某一天用wamp server登录phpmyadmin的时候,发现之前的创的一个用户登录不进去,并且出现phpmyadmin #1045错误无法登录mysql服务器. 研究了一下,最后成功解决. ...
- 2002无法连接mysql阿里云_2002无法登录MySQL服务器
提示:#2000 无法登录 MySQL 服务器今天用本机装了个phpMyAdmin,版本3.4.8,想用它来连一台内网服务器上的Mysql,于是乎修改phpMyAdmin配置文件config.inc. ...
- 解决 phpmyadmin #2002 无法登录 MySQL 服务器
解决 .#2002 无法登录 MySQL 服务器 将config.sample.inc.php复制成config.inc.php 出现这个错误,表示没有连接到数据库.修改config.inc.php文 ...
- 【无标题】无法登录 MySQL 服务器
小编在某一天用wamp server登录phpmyadmin的时候,发现之前的创的一个用户登录不进去,并且出现phpmyadmin #1045错误无法登录mysql服务器. 研究了一下,最后成功解决. ...
- 2054无法登陆mysql_张虹亮'blog » ubuntu20.04安装mysql8之后,php5程序和phpmyadmin出现#2054 无法登录MySQL服务器的解决方案...
最近新装了ubuntu20.04版本,如果安装了php5,在安装mysql之后,使用phpmyadmin登陆,会出现2054 无法登录MySQL服务器 这个问题经过一晚上的折腾,终于找到了解决方案: ...
- 登录mysql 1130_解决远程登录mysql数据库报1130错误-阿里云开发者社区
现象:安装好mysql后,发现phpmyadmin不能登录mysql,返回1130错误,如下图: 但是在mysql命令行登录mysql -u root -p可以.分析过程及解决方案: 百度查询mysq ...
- phpMyAdmin无法登录MySQL服务器
一个月没有用Wampserver了,如今一打开就成了这样,每次登录就提示无法登录MySQL服务器,Wampserver也变成了橙色.起初还以为是因为端口号冲突了,改了好几个端口都没有解 ...
- 宝塔无法登录mysql服务器_宝塔面板提示无法登陆MySQL服务器的解决办法!
我使用的阿里云轻量级云服务器在服务器上设置了网站. 我通常不登录到宝塔面板或访问服务器. 但是,昨天创建了一个新网站后,我发现数据库未连接. 权限不足或数据库信息未正确填写. 因此,我将localho ...
- 登录MySQL服务器
简述 安装了数据库系统之后,可以配套安装一个图形化的操作应用,这种方式虽然操作起来直观易用,但是灵活度受到一定的限制.所以,尽管是数据库入门的新手,也应该学习使用命令行客户端操作数据库. 使用命令行操 ...
最新文章
- Sharepoint学习笔记---Linq to Sharepoint--查询语法
- 数据结构--跳表SkipList
- 解决ipad,ios录屏保存失败-5823
- ntpd时钟同步服务
- mysql和sqlserver读写分离_C#简单构架之EF进行读写分离+多数据库Mysql/SqlServer
- python访问字符串中的部分字符的操作_小白学Python-13(字符串基础与简单操作)...
- 关于微信H5自动播放视频-canvas实现逐帧动画效果加音频
- 电阻、电容、电感、半导体器件的失效分析
- BP神经网络matlab代码
- SaaSBase:什么是零一裂变SCRM?
- yapi token注入漏洞
- ubuntu 安装微信(微信官方版本)
- 【Camera】手机相机自动对焦的3种方式及原理
- 说说转义字符 “\”
- java 山寨qq源代码_求一个山寨qq的源代码,要java语言的~谢谢
- APP设计尺寸规范大全,APP界面设计新手教程【官方版】
- day1-C++学习
- vero visi 2021中文版
- Memcached优化
- 《生命不息,折腾不止》
热门文章
- python开源系统_搭建轻量级的开源推荐系统-Python-recsys
- 单边指数信号的特点_测试技术课后题答案1信号描述
- std::setprecision、std::ios::fixed使用说明
- Android开发之LayoutInflater.from(context).inflate()方法参数介绍解决RecyclerView加载布局不全的问题
- IOS , plist 配置项说明
- apache多站点配置+多端口配置
- php接口数据加密、解密、验证签名【转】
- Redis学习笔记~是时候为Redis实现一个仓储了,RedisRepository来了
- 设计模式系列之单例模式(java)
- 如何在vue-router的beforeEach钩子里做页面访问权限验证