OroCommerce Forums

Covering OroCommerce topics, including community updates and company announcements.

Forums Forums OroCommerce can not use web install

This topic contains 6 replies, has 4 voices, and was last updated by  langziyang1982 6 years, 4 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Author
    Replies
  • #32278

    Hello,

    To find out what is wrong with installation please provide next information:

    • Web-server log
    • Information about server configuration
    • Install log ( You can find it by next path: app_directory/app/logs/oro_install.log )
    • Information about OroCommerce version that you tried to install

    Best Regards,
    Alexandr Parkhomenko

    #32279

    langziyang1982
    Participant

    Fatal error: Uncaught PDOException: SQLSTATE[HY000] [1045] Access denied for user ‘root’@’localhost’ (using password: NO) in /var/www/banshanhome/public_html/oro/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:43 Stack trace: #0 /var/www/banshanhome/public_html/oro/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(43): PDO->__construct(‘mysql:host=127….’, ‘root’, NULL, Array) #1 /var/www/banshanhome/public_html/oro/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOMySql/Driver.php(44): Doctrine\DBAL\Driver\PDOConnection->__construct(‘mysql:host=127….’, ‘root’, NULL, Array) #2 /var/www/banshanhome/public_html/oro/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(360): Doctrine\DBAL\Driver\PDOMySql\Driver->connect(Array, ‘root’, NULL, Array) #3 /var/www/banshanhome/public_html/oro/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(429): Doctrine\DBAL\Connection->connect() #4 /var/www/banshanhome/public_html/oro/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(389): Doctrine\DBAL\ in /var/www/banshanhome/public_html/oro/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php on line 103

    #32280

    acaliman
    Participant

    Hi,

    From that log entry, it seems that the application does not have rights to use that database.

    Make sure to set in app/config/parameters.yml the database_user and database_password parameters to a user which has privileges for the DB. Now it seems you use root, without specifying a password.

    Adrian

    #32281

    langziyang1982
    Participant

    i already edit the file,and the error is not changed:

    Fatal error: Uncaught PDOException: SQLSTATE[HY000] [1045] Access denied for user ‘root’@’localhost’ (using password: NO) in /var/www/banshanhome/public_html/oro/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:43 Stack trace: #0 /var/www/banshanhome/public_html/oro/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(43): PDO->__construct(‘mysql:host=127….’, ‘root’, NULL, Array) #1 /var/www/banshanhome/public_html/oro/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOMySql/Driver.php(44): Doctrine\DBAL\Driver\PDOConnection->__construct(‘mysql:host=127….’, ‘root’, NULL, Array) #2 /var/www/banshanhome/public_html/oro/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(360): Doctrine\DBAL\Driver\PDOMySql\Driver->connect(Array, ‘root’, NULL, Array) #3 /var/www/banshanhome/public_html/oro/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(429): Doctrine\DBAL\Connection->connect() #4 /var/www/banshanhome/public_html/oro/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(389): Doctrine\DBAL\ in /var/www/banshanhome/public_html/oro/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php on line 103

    #32282

    mmiasnikov
    Participant

    Hello, langziyang1982!

    Do you use root user without a password, it’s correct information? If yes and you’re using MySQL on Linux OS as the environment, please, read and follow recommendations from the article Cant login as MySQL user root from normal user account to fix this issue.

    If these recommendations won’t help you, please, provide additional information about your environment (for example, as described in topic Please read this before starting a topic with technical question.

    Thank you.

    #32283

    langziyang1982
    Participant

    no,this is my parameters.yml file content:
    database_driver: pdo_mysql
    database_host: localhost
    database_port: 3306
    database_name: oro
    database_user: root
    database_password: thisismysqlpassword

Viewing 6 replies - 1 through 6 (of 6 total)

The forum ‘OroCommerce’ is closed to new topics and replies.

Back to top