質問 > その他 > 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でエラー 手元の環境で試したのですが再現しないですね・・
mysql8はdockerで立てています。
|
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以外の権限を全て与えてたら、できました。 |
スレッド表示 | 新しいものから | 前のトピック | 次のトピック | トップ |