Question: localhost install error

localhost install error

Hello, I tried to install sma locally but I got this error: https://snipboard.io/w5CqEs.jpg https://snipboard.io/UYdkzQ.jpg https://snipboard.io/dcfADs.jpg https://snipboard.io/C6lPIB.jpg No

MB

Mehdi boudhir

Asked
Hello,
I tried to install sma locally but I got this error:
https://snipboard.io/w5CqEs.jpg
https://snipboard.io/UYdkzQ.jpg
https://snipboard.io/dcfADs.jpg
https://snipboard.io/C6lPIB.jpg
No log error recorded


( ! ) Warning: mysqli::__construct(): (HY000/1045): Access denied for user 'root'@'localhost' (using password: YES) in C:\wamp64\www\stock\install\install.php on line 262
Call Stack
# Time Memory Function Location
1 0.0002 413808 {main}( ) ...\index.php:0
2 0.0003 415032 require( 'C:\wamp64\www\stock\install\install.php' ) ...\index.php:25
3 0.0004 416960 __construct ( ) ...\install.php:262
Could not connect to MYSQL!
I m using wampserver and all features have done.
  • MS

    Mian Saleem

    Answered
    Hello,

    Please make sure that the dbuser has the privilege on the database.

    Once installed, the installer will be locked. You will need to upload the files again specially `MAIN` null file that will be deleted after installed.

    For 500, please check the wamp error logs and let me know the error details.

    Thank you
  • MB

    Mehdi boudhir

    Answered
    P 2. require() C:\wamp64\www\stock\install\index.php:25
    [29-May-2020 21:02:00 UTC] PHP 3. Database->create_tables() C:\wamp64\www\stock\install\install.php:451
    [29-May-2020 21:02:00 UTC] PHP 4. mysqli->__construct() C:\wamp64\www\stock\install\includes\database_class.php:9
    [29-May-2020 21:02:22 UTC] PHP Warning: mysqli::__construct(): (HY000/1045): Access denied for user 'dbuser'@'localhost' (using password: YES) in C:\wamp64\www\stock\install\includes\database_class.php on line 9
    [29-May-2020 21:02:22 UTC] PHP Stack trace:
    [29-May-2020 21:02:22 UTC] PHP 1. {main}() C:\wamp64\www\stock\install\index.php:0
    [29-May-2020 21:02:22 UTC] PHP 2. require() C:\wamp64\www\stock\install\index.php:25
    [29-May-2020 21:02:22 UTC] PHP 3. Database->create_tables() C:\wamp64\www\stock\install\install.php:451
    [29-May-2020 21:02:22 UTC] PHP 4. mysqli->__construct() C:\wamp64\www\stock\install\includes\database_class.php:9
    [29-May-2020 21:02:51 UTC] PHP Warning: mysqli::__construct(): (HY000/1045): Access denied for user 'dbuser'@'localhost' (using password: YES) in C:\wamp64\www\stock\install\includes\database_class.php on line 9
    [29-May-2020 21:02:51 UTC] PHP Stack trace:
    [29-May-2020 21:02:51 UTC] PHP 1. {main}() C:\wamp64\www\stock\install\index.php:0
    [29-May-2020 21:02:51 UTC] PHP 2. require() C:\wamp64\www\stock\install\index.php:25
    [29-May-2020 21:02:51 UTC] PHP 3. Database->create_tables() C:\wamp64\www\stock\install\install.php:451
    [29-May-2020 21:02:51 UTC] PHP 4. mysqli->__construct() C:\wamp64\www\stock\install\includes\database_class.php:9
    [29-May-2020 21:05:36 UTC] PHP Warning: mysqli::__construct(): (HY000/1045): Access denied for user 'dbuser'@'localhost' (using password: YES) in C:\wamp64\www\stock\install\includes\database_class.php on line 9
    [29-May-2020 21:05:36 UTC] PHP Stack trace:
    [29-May-2020 21:05:36 UTC] PHP 1. {main}() C:\wamp64\www\stock\install\index.php:0
    [29-May-2020 21:05:36 UTC] PHP 2. require() C:\wamp64\www\stock\install\index.php:25
    [29-May-2020 21:05:36 UTC] PHP 3. Database->create_tables() C:\wamp64\www\stock\install\install.php:451
    [29-May-2020 21:05:36 UTC] PHP 4. mysqli->__construct() C:\wamp64\www\stock\install\includes\database_class.php:9
    [29-May-2020 21:06:52 UTC] PHP Warning: mysqli::__construct(): (HY000/1045): Access denied for user 'stock'@'localhost' (using password: YES) in C:\wamp64\www\stock\install\install.php on line 262
    [29-May-2020 21:06:52 UTC] PHP Stack trace:
    [29-May-2020 21:06:52 UTC] PHP 1. {main}() C:\wamp64\www\stock\install\index.php:0
    [29-May-2020 21:06:52 UTC] PHP 2. require() C:\wamp64\www\stock\install\index.php:25
    [29-May-2020 21:06:52 UTC] PHP 3. mysqli->__construct() C:\wamp64\www\stock\install\install.php:262
    [29-May-2020 21:07:04 UTC] PHP Warning: mysqli::__construct(): (HY000/1045): Access denied for user 'stock'@'localhost' (using password: YES) in C:\wamp64\www\stock\install\install.php on line 262
    [29-May-2020 21:07:04 UTC] PHP Stack trace:
    [29-May-2020 21:07:04 UTC] PHP 1. {main}() C:\wamp64\www\stock\install\index.php:0
    [29-May-2020 21:07:04 UTC] PHP 2. require() C:\wamp64\www\stock\install\index.php:25
    [29-May-2020 21:07:04 UTC] PHP 3. mysqli->__construct() C:\wamp64\www\stock\install\install.php:262
    [29-May-2020 21:14:56 UTC] PHP Warning: mysqli::__construct(): (HY000/1045): Access denied for user 'root'@'localhost' (using password: YES) in C:\wamp64\www\stock\install\install.php on line 262
    [29-May-2020 21:14:56 UTC] PHP Stack trace:
    [29-May-2020 21:14:56 UTC] PHP 1. {main}() C:\wamp64\www\stock\install\index.php:0
    [29-May-2020 21:14:56 UTC] PHP 2. require() C:\wamp64\www\stock\install\index.php:25
    [29-May-2020 21:14:56 UTC] PHP 3. mysqli->__construct() C:\wamp64\www\stock\install\install.php:262
    [29-May-2020 21:24:33 UTC] PHP Warning: mysqli::__construct(): (HY000/1045): Access denied for user 'root'@'localhost' (using password: YES) in C:\wamp64\www\stock\install\install.php on line 262
    [29-May-2020 21:24:33 UTC] PHP Stack trace:
    [29-May-2020 21:24:33 UTC] PHP 1. {main}() C:\wamp64\www\stock\install\index.php:0
    [29-May-2020 21:24:33 UTC] PHP 2. require() C:\wamp64\www\stock\install\index.php:25
    [29-May-2020 21:24:33 UTC] PHP 3. mysqli->__construct() C:\wamp64\www\stock\install\install.php:262
  • MS

    Mian Saleem

    Answered
    The errors are due to dbuser don't have all permissions for database. Please check you db config in `app/config/database.php` and make sure that database, username and passwords are correct.
  • Login to Reply