[[EC-CUBEめも]]

MySQLへの接続にはPHPが --with-mysql オプションを指定してコンパイルされている必要があります。

**ソースのダウンロードと設置 [#z86753eb]

無料の会員登録をしてソースをダウンロード~
https://www.ec-cube.net/

 $ tar xvzfpP eccube-2.13.5.tar.gz
 $ mv eccube-2.13.5/html/ public_html
 $ mv eccube-2.13.5/data/ ./
 $ rm -fr eccube-2.13.5
 $ rm -f eccube-2.13.5.tar.gz

**データベースの準備 MySQL [#y52eae46]

 $ mysql -u root
 mysql> create database eccube_db default character set utf8;
 mysql> create user 'eccube_db_user'@'localhost' indentified by 'eccube_db_password';
 mysql> grant all on eccube_db.* to 'eccube_db_user'@'localhost';

**データベースの準備 PostgreSQL [#bbedf3cf]

 $ createuser eccube_db_user
 Shall the new role be a superuser? (y/n) n
 Shall the new role be allowed to create databases? (y/n) y
 Shall the new role be allowed to create more new roles? (y/n) n
 $ createdb -U eccube_db_user -E UTF-8 -T template0 eccube_db
 $ psql -U eccube_db_user eccube_db
 => ALTER USER eccube_db_user PASSWORD 'password';

**ブラウザでアクセスしセットアップ [#g936ff65]

ブラウザでアクセスして説明に従ってセットアップします。

セットアップ完了後は install フォルダを削除します。

 $ rm -fr public_html/install

**MySQL5.7以降でエラー [#x824e30f]

 Native message: Unknown system variable 'storage_engine'

とエラーが出る場合は以下のファイルを書き変えると動きます。

data\class\db\dbfactory\SC_DB_DBFactory_MYSQL.php

     public function initObjQuery(SC_Query &$objQuery)
     {
 //      $objQuery->exec('SET SESSION storage_engine = InnoDB');
         $objQuery->exec('SET SESSION default_storage_engine = InnoDB');
         $objQuery->exec("SET SESSION sql_mode = 'ANSI'");
     }



トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS