Welcome Guest. Please Login or Register  


You are here: Index > Softaculous Auto Installer > General Support > Topic : Password - MySQL database



Normal Mode | Print  

Password - MySQL database
emaloi
Group: Member
Post Group: Newbie
Posts: 2
Status:
Thank you guys,

I found the database password by following these instructions: http://www.softaculous.com/docs/How_to_edit_an_installation

However, if you use this code to connect to the database, it gives me an error... how is that possible?

$config = parse_ini_file('/config.ini');

// Connect to database

    $mysqli = new mysqli($config['servername'], $config['username'], $config['password'], $config['dbname']);

    printf("\n ".date("Y-m-d h:i:sa") . " - Establishing connection to " . $config['dbname'] . " on " . $config['servername'] . ".\n");

    // Check connection

    if ($mysqli->connect_error) {

        die('Error : (' . $mysqli->connect_errno . ') ' . $mysqli->connect_error);

        printf("\n ".date("Y-m-d h:i:sa") . " - Connection failed. Returned error: " . mysqli_connect_error() . "\n");

    } else {

        printf("\n ".date("Y-m-d h:i:sa") . " - Connection successful.\n");

    }


The error that is reported to me is this: Establishing connection to on. Error: (Access denied for user 'root' @ 'localhost' (using password: NO)) Access denied for user 'root' @ 'localhost' (using password: NO)

Anyone have any ideas? I am completely blocked ...
IP: --   


Threads
 emaloi   Password - MySQL database (4 Replies, Read 4508 times)
    |--  emaloi   Thank you guys,...   on March 21, 2017, 4:45 pm
    |--  VitorPereiraaa   Hi friends, can't...   on March 21, 2017, 11:31 pm
    |--  Brijesh   Thank you guys,...   on March 23, 2017, 2:11 pm
    |--  Brijesh   Hi friends, can't...   on March 23, 2017, 2:13 pm

« Previous    Next »

Normal Mode | Print  



Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is November 7, 2025, 12:00 am.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 10  |  Page Created In:0.013