Re: [D*] diaspora dev install issue (OSX)

49 views
Skip to first unread message

Flaburgan

unread,
May 7, 2013, 5:08:16 AM5/7/13
to diaspo...@googlegroups.com

Your error indicates that the script is trying to connect to the database with an empty username (the '' before the @ should contain the name of the user).

But I don't know why this is empty...

Le 07.05.2013 10:45, Tancredi Leone a écrit :

Hi everybody,

I was wondering if anyone here could help me out with the development installation on OSX I'm running lion atm.

So I've been following meticulously all the instructions found here: https://github.com/diaspora/diaspora/wiki/Notes-on-Installing-and-Running-Diaspora and here: http://zoomq.qiniudn.com/ZQScrapBook/ZqSKM/data/20110222104428/index.html

I've all the required gems and updated versions.

However get the error when try to run the db command: bundle exec rake db:create

Mysql2::Error: Access denied for user ''@'localhost' to database 'diaspora_development': CREATE DATABASE `diaspora_development` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_bin`

I've created the db and user although it keeps throwing the error, this is a copy of my database.yml file

mysql: &mysql
  adapter: mysql2
  host: "localhost"
  port: 3306
  username: "diverso"
  password: ""
  #socket: /tmp/mysql.sock
  charset: utf8
  collation: utf8_bin
  database: 'myname'

# postgres: &postgres
# adapter: postgresql
# host: localhost
# port: 5432
# username: postgres
# password:
# encoding: unicode

# Comment the the mysql line and uncomment the postgres line
# if you want to use postgres
common: &common
  # Choose one of the following
  <<: *mysql
  #<<: *postgres

  # Should match environment.sidekiq.concurrency
  #pool: 25

Can anyone please point out what am I doing wrong am almost sure it's the db configuration but I don't know how to fix it.


 

--
You received this message because you are subscribed to the Google Groups "diaspora-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to diaspora-dev...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
 

Tancredi Leone

unread,
May 7, 2013, 5:35:06 AM5/7/13
to diaspo...@googlegroups.com, flab...@geexxx.fr
Yep that's what I thought as well, however I also have no idea why the user filed is empty, I've created a user probably I'm doing something wrong matter of find out what it is..
Reply all
Reply to author
Forward
0 new messages