> # mysql -h localhost -u my_usr -p'my_pwd'
> ERROR 2002 (HY000): Can't connect to local server through socket '/run/mysqld/mysqld.sock' (2)
until you solve that problem, a Moodle with:
> ERROR 2002 (HY000): Can't connect to local server through socket '/run/mysqld/mysqld.sock' (2)
until you solve that problem, a Moodle with:
$CFG->dbhost = 'localhost';
$CFG->dbname = 'moodle';
$CFG->dbuser = 'my_usr';
$CFG->dbpass = 'my_pwd';
$CFG->dbname = 'moodle';
$CFG->dbuser = 'my_usr';
$CFG->dbpass = 'my_pwd';
will not work.
The unknown factor here is the "droplet", i.e. what the hosting provider gives you under that label. I'm talking about any common Ubuntu or Debian Linux server.
BTW, notice that I said,
$ mysql -u DBUSER -p
Enter password: []
Hope, you know what bonusses you add and why.



