-
-
Save sunfmin/19826 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
** Execute db:autoupgrade | |
rake aborted! | |
Access denied for user ''@'localhost' to database 'abc_dev' (mysql_error_code=-001) | |
/Library/Ruby/Gems/1.8/gems/data_objects-0.9.6/lib/data_objects/connection.rb:26:in `initialize' | |
/Library/Ruby/Gems/1.8/gems/data_objects-0.9.6/lib/data_objects/connection.rb:26:in `send' | |
/Library/Ruby/Gems/1.8/gems/data_objects-0.9.6/lib/data_objects/connection.rb:26:in `__new' | |
/Library/Ruby/Gems/1.8/gems/extlib-0.9.8/lib/extlib/pooling.rb:161:in `new' | |
/Library/Ruby/Gems/1.8/gems/extlib-0.9.8/lib/extlib/pooling.rb:156:in `synchronize' | |
/Library/Ruby/Gems/1.8/gems/extlib-0.9.8/lib/extlib/pooling.rb:156:in `new' | |
/Library/Ruby/Gems/1.8/gems/extlib-0.9.8/lib/extlib/pooling.rb:107:in `new' | |
/Library/Ruby/Gems/1.8/gems/data_objects-0.9.6/lib/data_objects/connection.rb:18:in `new' | |
/Library/Ruby/Gems/1.8/gems/dm-core-0.9.6/lib/dm-core/adapters/data_objects_adapter.rb:147:in `create_connection' | |
/Library/Ruby/Gems/1.8/gems/dm-core-0.9.6/lib/dm-core/adapters/data_objects_adapter.rb:170:in `with_connection' | |
/Library/Ruby/Gems/1.8/gems/dm-core-0.9.6/lib/dm-core/adapters/data_objects_adapter.rb:181:in `with_reader' | |
/Library/Ruby/Gems/1.8/gems/dm-core-0.9.6/lib/dm-core/adapters/data_objects_adapter.rb:97:in `query' | |
/Library/Ruby/Gems/1.8/gems/dm-core-0.9.6/lib/dm-core/adapters/mysql_adapter.rb:48:in `storage_exists?' | |
/Library/Ruby/Gems/1.8/gems/dm-core-0.9.6/lib/dm-core/adapters/data_objects_adapter.rb:452:in `create_model_storage' | |
/Library/Ruby/Gems/1.8/gems/dm-core-0.9.6/lib/dm-core/adapters/data_objects_adapter.rb:433:in `upgrade_model_storage' | |
/Library/Ruby/Gems/1.8/gems/dm-core-0.9.6/lib/dm-core/auto_migrations.rb:107:in `auto_upgrade!' | |
/Library/Ruby/Gems/1.8/gems/dm-core-0.9.6/lib/dm-core/model.rb:113:in `repository' | |
/Library/Ruby/Gems/1.8/gems/dm-core-0.9.6/lib/dm-core.rb:181:in `repository' | |
/Library/Ruby/Gems/1.8/gems/dm-core-0.9.6/lib/dm-core/repository.rb:44:in `scope' | |
/Library/Ruby/Gems/1.8/gems/dm-core-0.9.6/lib/dm-core.rb:181:in `repository' | |
/Library/Ruby/Gems/1.8/gems/dm-core-0.9.6/lib/dm-core/model.rb:113:in `repository' | |
/Library/Ruby/Gems/1.8/gems/dm-core-0.9.6/lib/dm-core/auto_migrations.rb:106:in `auto_upgrade!' | |
/Library/Ruby/Gems/1.8/gems/dm-core-0.9.6/lib/dm-core/auto_migrations.rb:51:in `auto_upgrade' | |
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/set.rb:189:in `each' | |
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/set.rb:189:in `each_key' | |
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/set.rb:189:in `each' | |
/Library/Ruby/Gems/1.8/gems/dm-core-0.9.6/lib/dm-core/auto_migrations.rb:50:in `auto_upgrade' | |
/Library/Ruby/Gems/1.8/gems/merb_datamapper-0.9.10/lib/merb_datamapper/merbtasks.rb:23 | |
/Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `call' | |
/Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `execute' | |
/Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each' | |
/Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute' | |
/Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:508:in `invoke_with_call_chain' | |
/Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `synchronize' | |
/Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `invoke_with_call_chain' | |
/Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:494:in `invoke' | |
/Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1931:in `invoke_task' | |
/Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level' | |
/Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `each' | |
/Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level' | |
/Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exception_handling' | |
/Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1903:in `top_level' | |
/Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1881:in `run' | |
/Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exception_handling' | |
/Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1878:in `run' | |
/Library/Ruby/Gems/1.8/gems/rake-0.8.1/bin/rake:31 | |
/usr/bin/rake:19:in `load' | |
/usr/bin/rake:19 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Felix:abc sunfmin$ merb -i | |
Loading init file from /Users/sunfmin/Developments/abc/config/init.rb | |
Loading /Users/sunfmin/Developments/abc/config/environments/development.rb | |
~ No database.yml file found in /Users/sunfmin/Developments/abc/config, assuming database connection(s) established in the environment file in /Users/sunfmin/Developments/abc/config/environments | |
~ Parent pid: 1456 | |
~ Compiling routes... | |
~ Could not find resource model InplaceEditor | |
irb: warn: can't alias context from irb_context. | |
>> DataMapper::Repository.adapters[:default] | |
=> #<DataMapper::Adapters::MysqlAdapter:0x1b6d860 @transactions={}, @git_config={:local=>"/git_abc_dev", :increment_offset=>1, :as_url=>"ssh://felix.local/git_abc_dev"}, @name=:default, @field_naming_convention=DataMapper::NamingConventions::Field::Underscored, @resource_naming_convention=DataMapper::NamingConventions::Resource::UnderscoredAndPluralized, @uri=#<struct DataObjects::URI scheme="mysql", user="abc", password=nil, host="localhost", port=nil, specified_port=nil, path="/abc_dev", query=nil, fragment=nil>> | |
>> | |
user is there |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Access denied for user ''@'localhost' to database 'abc_dev' (mysql_error_code=-001) | |
Means even you set your user name in datamapper, But that user does not exist in MySql | |
By showing: | |
Access denied for user 'abc'@'localhost' to database 'abc_dev' (mysql_error_code=-001) | |
is much more clear. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment