Letractively / rubycas-server

Automatically exported from code.google.com/p/rubycas-server
GNU Lesser General Public License v2.1
0 stars 0 forks source link

`real_connect': Access denied for user #98

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Good morning
1.I installed rubycas-server version 0.4.2 as a gem.
2.I started rubycas-server for the first time. I opened et modified config.yml.
3. And when i restarted rubycas-server, the connection between mysql and 
rubycas is not possible. 

So that is the screen shot of the error:

Loading picnic from rubygems...
DEPRECATION WARNING: require "activesupport" is deprecated and will be removed 
in Rails 3. Use require "active_support" instead. (called from 
/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/activesupport.rb:2)
Loading "rubycas-server" code from 
"/usr/lib/ruby/gems/1.8/gems/rubycas-server-0.7.999999.20100202"...
Loading configuration for "rubycas-server" from 
"/etc/rubycas-server/config.yml"...
Initialized global logger to "/var/log/casserver.log".
/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connection_adap
ters/mysql_adapter.rb:619:in `real_connect': Access denied for user 
'root'@'localhost' (using password: YES) (Mysql::Error)
    from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connection_adapters/mysql_adapter.rb:619:in `connect'
    from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connection_adapters/mysql_adapter.rb:203:in `initialize'
    from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connection_adapters/mysql_adapter.rb:75:in `new'
    from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connection_adapters/mysql_adapter.rb:75:in `mysql_connection'
    from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in `send'
    from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in `new_connection'
    from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:245:in `checkout_new_connection'
    from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:188:in `checkout'
     ... 22 levels...
    from /usr/lib/ruby/gems/1.8/gems/picnic-0.8.1.20100201/lib/picnic/cli.rb:162:in `handle_cli_input'
    from /usr/lib/ruby/gems/1.8/gems/rubycas-server-0.7.999999.20100202/bin/rubycas-server:13
    from /usr/bin/rubycas-server:19:in `load'
    from /usr/bin/rubycas-server:19

I use rubycas-server-0.7.999999 on ubuntu hardy heron
I post the config.yml file with this message...
I don't understand my mistakes in the config.yml.

Thank you very much.

Sami

Original issue reported on code.google.com by mestg...@gmail.com on 10 Jun 2010 at 1:33

Attachments:

GoogleCodeExporter commented 8 years ago
Looks like the database password you entered for your database is wrong in:

database:
  adapter: mysql
  database: casserver
  username: root
  password: xxxxx
  host: localhost

Try `mysql -u root -p` and enter the same password you have in your config. 
Does that work? 

According to the error message you posted, you've given rubycas-server the 
wrong password for your mysql database.

Original comment by matt.zuk...@gmail.com on 10 Jun 2010 at 1:54

GoogleCodeExporter commented 8 years ago

Original comment by matt.zuk...@gmail.com on 15 Jun 2010 at 4:25