"DB Error: connect failed" on a new install of playsms

playsmsd start
Unable to start playsmsd
playsmsd sendsmsd
DB Error: connect failed

Commands that were used to create the database and the corresponding user:

create database playsms;
create user 'playsms'@'localhost' identified by '';
GRANT ALL PRIVILEGES ON playsms.* TO 'playsms'@'localhost' WITH GRANT OPTION;
flush privileges;

Additional information:
OS: Linux
Distr: Debian
PHP version: 7.3.12
Nginx: 1.17.7
MySQL: 8.18

P.S. PHP module php-mysql installed

config.php:

<?php
$core_config['db']['type'] = 'mysqli';          // database engine
$core_config['db']['host'] = '127.0.0.1';       // database host/server
$core_config['db']['port'] = '3306';    // database port
$core_config['db']['user'] = 'playsms'; // database username
$core_config['db']['pass'] = 'password';      // database password
$core_config['db']['name'] = 'playsms'; // database name
$core_config['smtp']['relm'] = ''; // yes, not realm, it's relm
$core_config['smtp']['user'] = '';
$core_config['smtp']['pass'] = '';
$core_config['smtp']['host'] = 'localhost';
$core_config['smtp']['port'] = '25';
error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING & ~E_STRICT);
$core_config['apps_path']['logs'] = '/etc/playsms.conf';
$core_config['logstate']        = 2;
$core_config['logfile']         = 'playsms.log';
$core_config['logaudit']        = true;
$core_config['logauditfile']    = 'audit.log';
$core_config['ishttps']         = false;
$core_config['isdlrd']          = true;
$core_config['dlrd_limit']      = 1000;
$core_config['isrecvsmsd']      = true;
$core_config['recvsmsd_limit']  = 1000;
$core_config['issendsmsd']      = true;
$core_config['sendsmsd_queue']  = 10;
$core_config['sendsmsd_chunk']  = 20;
$core_config['sendsmsd_chunk_size'] = 100;
$core_config['webservices_username']    = true;

/etc/playsms.conf:

PLAYSMS_PATH="/var/www/playsms"
PLAYSMS_LIB="/var/lib/playsms"
PLAYSMS_BIN="/usr/local/bin"
PLAYSMS_LOG="/var/log/playsms"
#DAEMON_SLEEP="1"
#ERROR_REPORTING="0".

There was a similar problem, but it was related to the mysql version (link: DB Error: connect failed)

Dear forum users, please help. I can not find a solution

Regards,
Jamshid Tursunov

create user ‘playsms’@‘localhost’ identified by ‘password’;

instead of

create user ‘playsms’@‘localhost’ identified by ‘’;

Yes, the password is specified, I removed it, in the security brow)).
P.S. from the playsms account I log in to the database without problems, I already tried it.

Hi everybody!!
Any news gentlemen?

With a high degree of probability, I think that this is due to incompatibility of PHP and/or MySQL versions

Regards,
Jamshid Tursunov

Problem is solved.
Solution
CREATE USER ‘user’@‘localhost’ IDENTIFIED WITH mysql_native_password BY ‘password’;
GRANT ALL PRIVILEGES ON playsms.* TO ‘user’@‘localhost’;

Maybe someone will be useful.

Topic is closed.