[vine-users:081964] Re: Vine6.0にてOpenPNEの運用

CyksArt dreum1958 @ inter7.jp
2012年 7月 8日 (日) 23:04:25 JST


彩草塗です。

Vine固有の問題ではないので、本MLで伺うのが打倒かどうか
迷うところですが、乗りかかった船ということで、再度投稿いたします。

>>    The DBMS                 : mysql
>>    The Database Username    : hoge
>>    The Database Password    : ******
>>    The Database Hostname    : 127.0.0.1
>>    The Database Port Number :
>>    The Database Name        : openpne
>>    The Database Socket      :
>
> とすればいいという理解でよろしいでしょうか。
> 試してみます。

ということで、試してみました。結果としては、エラーで終了し、いまだ設定で
きておりません。

まず、以下のサイトを参考にして、MySQLにshichiというユーザーを作成しました。
http://vine.1-max.net/MySQL.html
----
[root @ tsubame ~]# mysql -u root -pxxxx
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.1.62 VineLinux MySQL RPM

Copyright (c) 2000, 2011, 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> grant all privileges on shichi.* to openone @ localhost identified
by 'yyyyyy';
Query OK, 0 rows affected (0.00 sec)

mysql> select user from mysql.user where user='openpne';
+---------+
| user    |
+---------+
| openpne |
+---------+
1 row in set (0.00 sec)

mysql> exit
Bye
[root @ tsubame ~]#
----------

次に、
 ./symfony openpne:install
を実行して、以下のような設定としました。
>>    The DBMS                 : mysql
>>    The Database Username    : openpne
>>    The Database Password    : ******
>>    The Database Hostname    : 127.0.0.1
>>    The Database Port Number :
>>    The Database Name        : shichi
>>    The Database Socket      :

順調に設定が進んでいくのですが、
最後の方で、エラーメッセージが出ます。
---------
.
.
.
>> file+
/home/shichi/www/data/fixtures_tmp/012_010_...ration_98d3f70e4efcc05a42d423693588f855.yml
>> doctrine  Dropping "doctrine" database
>> doctrine  SQLSTATE[42000]: Syntax error or access vio...chi'. Failing
Query: "DROP DATABASE shichi"
>> doctrine  Creating "prod" environment "doctrine" database
>> doctrine  SQLSTATE[42000]: Syntax error or access vio...i'. Failing
Query: "CREATE DATABASE shichi"
>> doctrine  generating model classes
>> file+     /tmp/doctrine_schema_56598.yml
>> tokens
/home/shichi/www/lib/model/doctrine/opAshiatoPlugin/base/BaseAshiato.class.php
.
.
.
------
そして最後、
>> doctrine  creating tables
  PDO Connection Error: SQLSTATE[42000] [1044] Access denied for user
'openpne'@'localhost' to database 'shichi'

で終了しています。

途中のエラーメッセージの"doctorine"の概念がよくわかってませんので、
対処方法が見つけられず、困っています。

引用が多く、長文で申し訳ありません。
アドバイスを頂けると幸いです。


-- 
彩草塗(CyksArt) dreum1958 @ inter7.jp
http://www.geocities.jp/cyksart/



vine-users メーリングリストの案内