Installing

Recommend this page to a friend!

      WDE  >  All threads  >  Installing  >  (Un) Subscribe thread alerts  
Subject:Installing
Summary:Installing
Messages:2
Author:Dragan Jankovic
Date:2015-09-21 17:02:45
 

  1. Installing   Reply   Report abuse  
Picture of Dragan Jankovic Dragan Jankovic - 2015-09-21 17:02:45
How do I setup mysql database and user details?

  2. Re: Installing   Reply   Report abuse  
Picture of Andras Toth Andras Toth - 2015-09-22 04:18:45 - In reply to message 1 from Dragan Jankovic
Hi,

Edit config.php file:

class Users
{
private $users = array(
'user_name' => array(
'password' => 'user_password',
'path' => 'path to the allowed folder',
'SQL' => array(
'conn' => 'mysql:host=YOUR_HOST;dbname=YOUR_DBNAME;charset=utf8',
'user' => 'DB_USER',
'pass' => 'DB_USER_PASS'
)
)
// More users ->
);
Replace user_name => WDE user (not db user),
create php file or use (http://sandbox.onlinephpfunctions.com/), and
execute this command:
echo password_hash('user_password', PASSWORD_DEFAULT);
copy result to 'user_password' => WDE login pass for current user.
Replace all other parameters to yours parameters (YOUR_HOST,DB_USER,DB_USER_PASS).