[chiliproject]Installation, mysql
Publié : mer. 09 janv. 2013, 14:51
Bonjour,
j’ai installé chiliproject à partir du PKGBUILD venant de aur que j’ai modifié pour correspondre à la dernière version.
Je suis les indications de la page officielle.
Mon fichier database.yml (le fichier configuration.yml n’a pas été touché):
Et ce que je ne comprends pas non-plus, c’est:
Si quelqu’un veut bien éclairer ma lanterne, je lui en serai reconnaissant.
j’ai installé chiliproject à partir du PKGBUILD venant de aur que j’ai modifié pour correspondre à la dernière version.
Je suis les indications de la page officielle.
Code : Tout sélectionner
$ cd /var/lib/chiliproject
$ sudo bundle install --without=test development sqlite postgres mysql
Using rake (10.0.3)
[…]
Using bundler (1.2.2)
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
Code : Tout sélectionner
$ --> mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 7
Server version: 5.5.29-log Source distribution
Copyright (c) 2000, 2012, 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> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
+--------------------+
3 rows in set (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql> create database chiliproject character set utf8;
Query OK, 1 row affected (0.00 sec)
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| chiliproject |
| mysql |
| performance_schema |
+--------------------+
4 rows in set (0.00 sec)
mysql> create user 'chiliproject' identified by 'my_password';
Query OK, 0 rows affected (0.00 sec)
mysql> SELECT USER FROM mysql.user;
+--------------+
| USER |
+--------------+
| chiliproject |
| root |
| root |
| root |
+--------------+
4 rows in set (0.00 sec)
mysql> grant all privileges on chiliproject.* to 'chiliproject'@'localhost';
Query OK, 0 rows affected (0.00 sec)
mysql> quit
Bye
Et maintenant, le moment fatidique:# MySQL (default setup).
production:
adapter: mysql2
database: chiliproject
host: localhost
username: chiliproject
password: my_password
encoding: utf8
Code : Tout sélectionner
$ sudo bundle exec rake generate_session_store
$ sudo RAILS_ENV=production bundle exec rake db:migrate
rake aborted!
Access denied for user 'chiliproject'@'localhost' (using password: YES)
/var/lib/chiliproject/vendor/plugins/awesome_nested_set/lib/awesome_nested_set.rb:218:in `quoted_left_column_name'
/var/lib/chiliproject/vendor/plugins/awesome_nested_set/lib/awesome_nested_set.rb:94:in `acts_as_nested_set'
/var/lib/chiliproject/app/models/issue.rb:33:in `<class:Issue>'
/var/lib/chiliproject/app/models/issue.rb:15:in `<top (required)>'
/var/lib/chiliproject/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:133:in `require_or_load_with_engine_additions'
<internal:prelude>:10:in `synchronize'
/var/lib/chiliproject/config/environment.rb:45:in `<top (required)>'
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)
Code : Tout sélectionner
$ mysql -u chiliproject -p
Enter password:
ERROR 1045 (28000): Access denied for user 'chiliproject'@'localhost' (using password: YES)