php - Instaling magento from command line errors -
i follow guide.
http://devdocs.magento.com/guides/v2.1/install-gde/install/cli/install-cli-install.html
i tried run web installatin got stucked try this.
when go mysql root
mysql> show databases; +--------------------+ | database | +--------------------+ | information_schema | | mysql | | performance_schema | | sys | +--------------------+ 4 rows in set (0,00 sec)
there not tables magento.
so run command given in link
magento setup:install --base-url=http://127.0.0.1/magento2/ \ --db-host=localhost --db-name=magento --db-user=magento --db-password=magento \ --admin-firstname=magento --admin-lastname=user --admin-email=user@example.com \ --admin-user=admin --admin-password=admin123 --language=en_us \ --currency=usd --timezone=america/chicago --use-rewrites=1
but mine cant run magento
use ./magento
root@vegan:/var/www/html/magento2/bin# ./magento setup:install --base-url=http://127.0.0.1/magento2/ --db-host=localhost --db-name=magento --db-user=magento --db-password=magento --admin-firstname=magento --admin-lastname=user --admin-email=user@example.com --admin-user=admin --admin-password=admin123 --language=en_us --currency=usd --timezone=america/chicago --use-rewrites=1 sqlstate[hy000] [1045] access denied user 'magento'@'localhost' (using password: yes) [invalidargumentexception] parameter validation failed
and other green writings
setup:install [--backend-frontname="..."] [--key="..."] [--session-save="..."] [--definition-format="..."] [--db-host="..."]
[--db-name="..."] [--db-user="..."] [--db-engine="..."] [--db-password="..."] [--db-prefix="..."] [--db-model="..."] [--db-init-statements="..."] [-s|--skip-db-validation] [--http-cache-hosts="..."] [--base-url="..."] [--language="..."] [--timezone="..."] [--currency="..."] [--use-rewrites="..."] [--use-secure="..."] [--base-url-secure="..."] [--use-secure-admin="..."] [--admin-use-security-key="..."] [--admin-user="..."] [--admin-password="..."] [--admin-email="..."] [--admin-firstname="..."] [--admin-lastname="..."] [--cleanup-database] [--sales-order-increment-prefix="..."] [--use-sample-data] [--magento-init-params="..."]
it says in informaton
--db-user user name of magento database instance owner. default root.
so use mysql password , admin name it. time works errors
root@vegan:/var/www/html/magento2/bin# ./magento setup:install --base-url=http://127.0.0.1/magento/ --db-host=localhost --db-name=magentodb --db-user=root --db-password= root --admin-user=admin --admin-password=admin123 --language=en_us --currency=usd --timezone=america/chicago --cleanup-database [runtimeexception] many arguments.
so, decrease paramters. again same
root@vegan:/var/www/html/magento2/bin# ./magento setup:install --base-url=http://127.0.0.1/magento/ --db-host=localhost --db-name=magentodb --db-user=root --db-password= root [runtimeexception] many arguments.
i can see
http://localhost/magento2/setup/#/landing-install
page here. think there no errors. can run setup stucks @ %66 %67. yesterday icompleted not adding shoopping card, today deleted php 5.6 7.0 in pc , reinstalle all. now, cant install..
what can reason? downloaded magento web , extracted ww/html
directory is
/var/www/html/magento2/bin
even errors
root@vegan:/var/www/html/magento2/bin# ./magento setup:install admin-user="root" [runtimeexception] many arguments. way create user , daabase before installation mysql -u root -p create database magentodb; create user magento@localhost identified 'magento'; grant privileges on magentodb.* magento@localhost; flush privileges; exit mysql bu 11- service apache2 restart 12- service mysql restart
i deleted php
, reinstalled php5.6
, worked.
Comments
Post a Comment