Hi, 

I'm trying to install GitLab pointing to a Database in a different server 
than the one I want to have GitLab running on. Im getting the following 
error message when i execute the step /usr/bin/sudo -u gitlab -H  
/usr/bin/bundle install --deployment --without development test postgres aws  
:

Mysql2::Error: Access denied for user 'gitlabuser'@'*Alice*' to database 
'gitlab'


The GitLab installation server is named Alice and the database server is 
named Bob running mysql.
Alice --> GitLab install server
Bob --> mysql DB server

 I tried configuring a host in the config/database.yml this way but is not 
working for me:

production:
  adapter: mysql2
  encoding: utf8
  reconnect: false
  database: "gitlab"
  pool: 10
  username: "gitlabuser" 
  password: "mypassword"
  host: "*Bob*" 
  # socket: /tmp/mysql.sock

For some reason, GitLab is trying to connect to a database in the local 
server (Alice)  instead of trying to connect to Bob as I'm specifying in 
the database.yml file

And I'm able to connect without problem to the database from Alice, so it 
is not a problem in the configuration of the database at Bob:
[osvie@Alice gitlab]$ mysql -h Bob -u gitlabuser -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 18254585
Server version: 5.6.13-enterprise-commercial-advanced MySQL Enterprise 
Server - Advanced Edition (Commercial)

Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input 
statement.

mysql> 

Does anybody knows how i configure the connection to a different server ?
Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"GitLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to gitlabhq+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/gitlabhq/f03bddd6-cb10-43b6-9b7e-0ec805ad580c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to