Skip to content

Commit 0c92638

Browse files
author
Nicolas Rodriguez
committed
Fix Access denied for user 'root'@'localhost'
1 parent 43ac885 commit 0c92638

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/spec_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
encoding: 'utf8'
6666
}
6767

68-
options = options.merge(username: 'root', host: '127.0.0.1') if adapter == 'mysql2'
68+
options = options.merge(username: 'root', host: 'localhost') if adapter == 'mysql2'
6969
options = options.merge(database: 'tmp/test.sqlite3') if adapter == 'sqlite3'
7070

7171
ActiveRecord::Base.establish_connection(options)

0 commit comments

Comments
 (0)