バージョン選択

フォーラム

メニュー

オンライン状況

45 人のユーザが現在オンラインです。 (35 人のユーザが フォーラム を参照しています。)
登録ユーザ: 0
ゲスト: 45
もっと...

サイト内検索

質問 > その他 > EC-CUBE4.0 インストール後、bin/console eccube:installでエラー

その他

新規スレッドを追加する

スレッド表示 | 新しいものから 前のトピック | 次のトピック | 下へ
投稿者 スレッド
kazz_oga
投稿日時: 2018/12/4 16:45
対応状況: 確認中
一人前
登録日: 2013/8/5
居住地: 東京都北区赤羽西
投稿: 144
EC-CUBE4.0 インストール後、bin/console eccube:installでエラー
▼テンプレート
[EC-CUBE] EC-CUBE4.0 新規インストール
[レンタルサーバ] ローカル環境(mac mini)
[OS] MacOS 10.14.1
[PHP] 7.2
[データベース] mySQL 8.0.12
[WEBサーバ] apache 2.4
[ブラウザ] safari
[導入プラグインの有無] 無し
[カスタマイズの有無] 無し
[現象]
■インストール後、DBをmySQLにするためbin/console bin/console eccube:installを実施。
-> dtb_memberにエラーが発生し、http::/127.0.0.1:8000/adminも動作せず。
 databaseへのドロップについては
  -> [OK] Database schema dropped successfully!
■bin/console bin/console eccube:install実施前はhttp::/127.0.0.1:8000/adminの表示あり

以下、bin/console bin/console eccube:installのログ
------------------------
ogawa-mac-mini:ec-cube_4.0_org kazz_oga$ bin/console eccube:install

EC-CUBE Installer Interactive Wizard
====================================

If you prefer to not use this interactive wizard, define the environment valiables as follows:

$ export APP_ENV=dev
$ export APP_DEBUG=1
$ export DATABASE_URL=database_url
$ export DATABASE_SERVER_VERSION=server_version
$ export MAILER_URL=mailer_url
$ export ECCUBE_AUTH_MAGIC=auth_magic
... and more
$ php bin/console eccube:install --no-interaction


Database Url [sqlite:///var/eccube.db]:
> mysql://eccube_db_user:*****************@localhost/eccube_4.0_org

Database Server version [auto]:
> 8.0

Mailer Url [null://localhost]:
>

Auth Magic [sTP50qNIfyKOB21v]:
>

!
! [CAUTION] Execute the installation process. All data is initialized.
!

Is it OK? (yes/no) [yes]:
> yes

Run doctrine:database:create --if-not-exists...
Database `eccube_4.0_org` for connection named default already exists. Skipped.

Run doctrine:schema:drop --force...

Dropping database schema...

[OK] Database schema dropped successfully!


Run doctrine:schema:create...


[ERROR] The command "bin/console doctrine:schema:create" failed.

Exit Code: 1(General error)

Working directory: /Users/kazz_oga/localhost/htdocs/ec-cube_4.0_org

Output:
================

! [CAUTION] This operation should not be executed in a production environment!

Creating database schema...



Error Output:
================

In ToolsException.php line 34:

Schema-Tool failed with Error 'An exception occurred while executing 'ALTER
TABLE dtb_news ADD CONSTRAINT FK_EA4C351761220EA6 FOREIGN KEY (creator_id)
REFERENCES dtb_member (id)':

SQLSTATE[42000]: Syntax error or access violation: 1142 REFERENCES command
denied to user 'eccube_db_user'@'localhost' for table 'eccube_4.0_org.dtb_m
ember'' while executing DDL: ALTER TABLE dtb_news ADD CONSTRAINT FK_EA4C351
761220EA6 FOREIGN KEY (creator_id) REFERENCES dtb_member (id)


In AbstractMySQLDriver.php line 113:

An exception occurred while executing 'ALTER TABLE dtb_news ADD CONSTRAINT
FK_EA4C351761220EA6 FOREIGN KEY (creator_id) REFERENCES dtb_member (id)':

SQLSTATE[42000]: Syntax error or access violation: 1142 REFERENCES command
denied to user 'eccube_db_user'@'localhost' for table 'eccube_4.0_org.dtb_m
ember'


In PDOConnection.php line 109:

SQLSTATE[42000]: Syntax error or access violation: 1142 REFERENCES command
denied to user 'eccube_db_user'@'localhost' for table 'eccube_4.0_org.dtb_m
ember'


In PDOConnection.php line 107:

SQLSTATE[42000]: Syntax error or access violation: 1142 REFERENCES command
denied to user 'eccube_db_user'@'localhost' for table 'eccube_4.0_org.dtb_m
ember'


doctrine:schema:create [--dump-sql] [--em [EM]] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose]
[-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command>




nyorai
投稿日時: 2018/12/7 9:17
対応状況: −−−
仙人
登録日: 2015/8/21
居住地:
投稿: 302
Re: EC-CUBE4.0 インストール後、bin/console eccube:installでエラー
手元の環境で試したのですが再現しないですね・・


EC-CUBE Installer Interactive Wizard
====================================

 If you prefer to not use this interactive wizard, define the environment valiables as follows:
 
  $ export APP_ENV=dev
  $ export APP_DEBUG=1
  $ export DATABASE_URL=database_url
  $ export DATABASE_SERVER_VERSION=server_version
  $ export MAILER_URL=mailer_url
  $ export ECCUBE_AUTH_MAGIC=auth_magic
  ... and more
  $ php bin/console eccube:install --no-interaction
 

 Database Url [mysql://root:password@127.0.0.1:3306/eccube_db]:
 > 

 Database Server version [auto]:
 > 8.0

 Mailer Url [null://localhost]:
 > 

 Auth Magic [YDFFVMzjD9A5KgJW]:
 > 

 !                                                                                                      
 ! [CAUTION] Execute the installation process. All data is initialized.                                 
 !                                                                                                      

 Is it OK? (yes/no) [yes]:
 > 

 Run doctrine:database:create --if-not-exists...
 Database `eccube_db` for connection named default already exists. Skipped.

 Run doctrine:schema:drop --force...
 
 Dropping database schema...

 [OK] Database schema dropped successfully!                                     


 Run doctrine:schema:create...
 
 ! [CAUTION] This operation should not be executed in a production environment! 

 Creating database schema...

 [OK] Database schema created successfully!                                     


 Run eccube:fixtures:load...
   > Finished Successful!

 Run cache:clear --no-warmup...
 
 // Clearing the cache for the dev environment with debug                       
 // true                                                                        

 [OK] Cache for the "dev" environment (debug=true) was successfully cleared.    


                                                                                                        
 [OK] EC-CUBE installation successful.


mysql8はdockerで立てています。


docker pull mysql:latest
docker run --name mysql8 -e MYSQL_ROOT_PASSWORD=password -p 3306:3306 -d mysql:latest
kazz_oga
投稿日時: 2018/12/7 10:11
対応状況: −−−
一人前
登録日: 2013/8/5
居住地: 東京都北区赤羽西
投稿: 144
Re: EC-CUBE4.0 インストール後、bin/console eccube:installでエラー
ありがとうございます。

当方は、.htaccessで指定したMagicNumberとinstall時のMagicNumber(省略)に違いがあるので、この現象が発生したのではと思い、再度、試みました。
(dtb_menberがらみのエラーのため、勝手に想像)

すると、bin/console eccube:installで
違うエラーメッセージ。すでにdatabaseが存在する旨の通知。
(ログを保存しなかったのでありません。ごめんなさい)

そしてmysql.server stop、mysql.server startができない状態になっています。
xxxxxx.local.errなどログ情報もmysql.server start時の情報がかきだされない状態になっています。

再度、mysqlのインストールからやって、
問題を整理して、改めて相談させもらいます。
sw_sn
投稿日時: 2018/12/7 14:48
対応状況: −−−
常連
登録日: 2018/5/25
居住地:
投稿: 49
Re: EC-CUBE4.0 インストール後、bin/console eccube:installでエラー
MySQLのエラーを見る限り、eccube_db_userユーザーにREFERENCES権限がないためにエラーが発生しているようにみえます。
ALL PRIVILEGES権限でユーザーを作成してみてはいかがでしょうか。

kazz_oga
投稿日時: 2018/12/7 17:00
対応状況: 解決済
一人前
登録日: 2013/8/5
居住地: 東京都北区赤羽西
投稿: 144
Re: EC-CUBE4.0 インストール後、bin/console eccube:installでエラー
ありがとございます。

GRANT、CREATE USER以外の権限を全て与えてたら、できました。
スレッド表示 | 新しいものから 前のトピック | 次のトピック | トップ


 



ログイン


EC-CUBE公式 Amazon Payプラグイン

統計情報

総メンバー数は88,286名です
総投稿数は109,688件です

投稿数ランキング

1
seasoft
7365
2
468
3217
3
AMUAMU
2712
4
nanasess
2303
5
umebius
2085
6
yuh
1818
7
h_tanaka
1610
8
red
1567
9
mcontact
1240
10
tsuji
958
11
fukap
907
12
shutta
835
13
tao_s
796
14 ramrun 789
15 karin 689
16 sumida 641
17
homan
633
18 DELIGHT 572
19
patapata
502
20
flealog
485


ネットショップの壺

EC-CUBEインテグレートパートナー

Copyright© EC-CUBE CO.,LTD. All Rights Reserved.