我试图在我的服务器上部署Web应用程序,我得到这个mysql数据库异常"访问被拒绝用户'root'@'localhost'(使用密码:YES)(Mysql :: Error)"
我尝试从命令提示符访问数据库,Access denied for user 'root'@'localhost' (using password: YES) (Mysql::Error)我可以执行所有数据库操作.
什么是错误
java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2928)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:771)
at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3649)
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1176)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2558)
at com.mysql.jdbc.Connection.<init>(Connection.java:1485)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
at java.sql.DriverManager.getConnection(DriverManager.java:620)
at java.sql.DriverManager.getConnection(DriverManager.java:200)
at com.mpigeon.DbConnection.DbConn(DbConnection.java:26)
at com.mpigeon.CheckLoginHome.doGet(CheckLoginHome.java:39)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
Run Code Online (Sandbox Code Playgroud) 我的基于Javascript的站点的用户经常需要创建一个事件,在该事件中他们发布事件名称,事件描述,开始时间和事件的结束时间以及日期.现在,他们想将这些活动详情添加到他们的Google日历或雅虎日历或iCal或Outlook,他们的标准库是什么?我试图弄清楚过去3天,虽然我知道谷歌api的,但我不知道iCal和Outlook甚至雅虎也.我正在寻找与此类似的" http://compute2011.doattend.com/ ".在右侧,您可以看到"将此添加到您的网站"部分,我想做同样的事情.
请帮我搞定.
我正在尝试在我的笔记本电脑上安装厨师和刀ec2插件来设置工作站.最初我使用厨师综合来安装厨师 - 客户端,但安装后我遇到了一些问题,所以一个快速的谷歌搜索让我到stackoverflow和几个线程建议我使用宝石安装厨师.我正在运行ruby 2.0.0-p0并且主厨和刀ec2已经安装了,但我现在遇到了另一个问题.我发布了这个问题,请好好看看.
请帮我解决这个问题
/home/jeevan/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/site_ruby/2.0.0/rubygems/dependency.rb:247:in `to_specs': Could not find chef (>= 0) amongst [] (Gem::LoadError)
from /home/jeevan/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/site_ruby/2.0.0/rubygems/dependency.rb:256:in `to_spec'
from /home/jeevan/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/site_ruby/2.0.0/rubygems.rb:1231:in `gem'
from /home/jeevan/.rvm/gems/ruby-2.0.0-p0/bin/chef-client:18:in `<main>'
from /home/jeevan/.rvm/gems/ruby-2.0.0-p0/bin/ruby_noexec_wrapper:14:in `eval'
from /home/jeevan/.rvm/gems/ruby-2.0.0-p0/bin/ruby_noexec_wrapper:14:in `<main>'
Run Code Online (Sandbox Code Playgroud) 我正在寻找ruby on rails上的报告宝石或工具.它是一个电子商务应用程序,我需要生成大量的数据,如销售报告,营销报告等,我想让它更通用和开放,以便用户可以得到任何类型的报告.
我开发了Facebook应用程序,它克隆了我的网站的注册和sign_in部分.用户可以通过Facebook注册或登录我的网站.我创建了一个简单的HTML页面,并将该页面作为iFrame嵌入到facebook选项卡中.
当我以管理员的身份打开应用程序时,它工作正常,但当我让我的朋友检查出来时,它说页面无法加载并给出此错误
Error 102 (net::ERR_CONNECTION_REFUSED): The server refused the connection.
Run Code Online (Sandbox Code Playgroud)
请帮我解决这个问题.
我正在运行tomcat server 6.0,当我尝试在此服务器上运行任何Web应用程序时,它给出了一个错误说"配置中定义的两个或多个Web模块具有相同的上下文根目录要启动此服务器,您需要删除重复项(一个或多个)".
我正在使用Eclipse 3.6 helios.
如何删除重复项?
嘿我是ruby on rails的新手,我正在尝试从这个博客运行一个简单的程序,并面临很多问题错误. http://goodbadtech.com/2009/05/13/ruby-on-rails-import-csv-data-into-database/ 无法找出解决方案.
这是错误日志.
/home/jeevan/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:234:in `load': /home/jeevan/csv/config/routes.rb:64: syntax error, unexpected keyword_end, expecting $end (SyntaxError)
from /home/jeevan/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:234:in `block in load'
from /home/jeevan/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:223:in `block in load_dependency'
from /home/jeevan/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:640:in `new_constants_in'
from /home/jeevan/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:223:in `load_dependency'
from /home/jeevan/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:234:in `load'
from /home/jeevan/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/application/routes_reloader.rb:29:in `block in load_paths'
from /home/jeevan/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/application/routes_reloader.rb:29:in `each'
from /home/jeevan/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/application/routes_reloader.rb:29:in `load_paths'
from /home/jeevan/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/application/routes_reloader.rb:13:in `reload!'
from /home/jeevan/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/application/routes_reloader.rb:7:in `block in initialize'
from /home/jeevan/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.1/lib/active_support/file_update_checker.rb:32:in `call'
from /home/jeevan/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.1/lib/active_support/file_update_checker.rb:32:in `execute_if_updated'
from /home/jeevan/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/application/finisher.rb:63:in `block (2 levels) in <module:Finisher>'
from /home/jeevan/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/application/finisher.rb:64:in `call'
from /home/jeevan/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/application/finisher.rb:64:in `block in <module:Finisher>'
from /home/jeevan/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/initializable.rb:30:in `instance_exec'
from /home/jeevan/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/initializable.rb:30:in …Run Code Online (Sandbox Code Playgroud) 我有几个bash脚本添加到指定时间的cron作业,但它需要以root用户身份执行.我正在尝试运行这些脚本,即crob作业,但它需要root用户权限,因为我在ubuntu ec2实例中运行此作业,其中root用户受到限制.以root用户身份运行这些脚本的工作原理是什么.
谢谢
我使用ruby企业版运行我的rails应用程序,独角兽作为app服务器.我运行这个命令
bundle exec unicorn -D -c /home/ubuntu/apps/st/config/unicorn.rb
Run Code Online (Sandbox Code Playgroud)
我需要在系统重启或启动后立即运行此命令.我在ubuntu 10.04 LTS EC2实例上运行应用程序.我尝试了本网站以及本网站上提到的几个例子,但它对我不起作用.任何抬头
我已经创建了ubuntu 10.04 ec2映像,现在我需要在我的实例上安装tomcat apache和jdk6但是每当我使用命令sudo apt-get install sun-java6-jdk或者sudo apt-get install tomcat6 admin或者sudo apt-get install ec2-api-tools
Package ec2-api-tools is not available, but is referred to by another package.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package ec2-api-tools is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only available from another source
E: Package ec2-api-tools has no installation candidate
Run Code Online (Sandbox Code Playgroud) ruby ×4
rubygems ×2
tomcat ×2
ubuntu ×2
amazon-ec2 ×1
apache ×1
bash ×1
chef-infra ×1
cron ×1
facebook ×1
google-api ×1
html ×1
icalendar ×1
java ×1
javascript ×1
linux ×1
mysql ×1
outlook ×1
syntax-error ×1
tomcat6 ×1
unicorn ×1
yahoo-api ×1