menu
#2822232 mysqli::__construct(): (HY000/2002): Connection refused

Submitted by PocketMine-MP 3.8.2

General information

Version: 3.8.2
Git commit: 5c81da9b
Plugin involvement: Direct
Report date: 2019-09-10 19:11:19 +0000 UTC

System Information

PHP version: 7.2.16
Operating system: linux
System banner: Linux ns3141500.ip-51-77-56.eu 4.19-ovh-xxxx-std-ipv6-64 #821614 SMP Thu Jul 25 13:37:36 UTC 2019 x86_64

Error information

Warning: the PurePerms plugin was directly involved in this crash. Please contact the plugin author.
Message: mysqli::__construct(): (HY000/2002): Connection refused
File: plugins/PurePerms_v1.4.2-c2a/src/_64FF00/PurePerms/provider/MySQLProvider
Line: #43
Error level: ErrorException
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
    {
$this->plugin = $plugin;

$mySQLSettings = $this->plugin->getConfigValue("mysql-settings");

if(!isset($mySQLSettings["host"]) || !isset($mySQLSettings["port"]) || !isset($mySQLSettings["user"]) || !isset($mySQLSettings["password"]) || !isset($mySQLSettings["db"]))
throw new \RuntimeException("Failed to connect to the MySQL database: Invalid MySQL settings");


$this->db = new \mysqli($mySQLSettings["host"], $mySQLSettings["user"], $mySQLSettings["password"], $mySQLSettings["db"], $mySQLSettings["port"]);

if($this->db->connect_error)
throw new \RuntimeException("Failed to connect to the MySQL database: " . $this->db->connect_error);

$resource = $this->plugin->getResource("mysql_deploy_01.sql");

$this->db->multi_query(stream_get_contents($resource));

while($this->db->more_results())
{
#0 (): pocketmine\utils\Utils::errorExceptionHandler(integer 2, string mysqli::__construct(): (HY000/2002): Connection refused, string /home/1_11/plugins/PurePerms_v1.4.2-c2a/src/_64FF00/PurePerms/provider/MySQLProvider.php, integer 43, array Array())
#1 plugins/PurePerms_v1.4.2-c2a/src/_64FF00/PurePerms/provider/MySQLProvider(43): mysqli->__construct(string 127.0.0.1, string root, string zqJb3igB, string bananape, integer 3306)
#2 plugins/PurePerms_v1.4.2-c2a/src/_64FF00/PurePerms/PurePerms(207): _64FF00\PurePerms\provider\MySQLProvider->__construct(_64FF00\PurePerms\PurePerms object)
#3 plugins/PurePerms_v1.4.2-c2a/src/_64FF00/PurePerms/PurePerms(525): _64FF00\PurePerms\PurePerms->setProvider(boolean )
#4 plugins/PurePerms_v1.4.2-c2a/src/_64FF00/PurePerms/data/UserDataManager(40): _64FF00\PurePerms\PurePerms->getProvider()
#5 plugins/PurePerms_v1.4.2-c2a/src/_64FF00/PurePerms/data/UserDataManager(85): _64FF00\PurePerms\data\UserDataManager->getData(pocketmine\Player object)
#6 plugins/PurePerms_v1.4.2-c2a/src/_64FF00/PurePerms/data/UserDataManager(58): _64FF00\PurePerms\data\UserDataManager->getNode(pocketmine\Player object, string group)
#7 plugins/PurePerms_v1.4.2-c2a/src/_64FF00/PurePerms/PurePerms(117): _64FF00\PurePerms\data\UserDataManager->getGroup(pocketmine\Player object)
#8 /home/1_11/plugin_data/ScoreHud/addons/BananaAddon(33): _64FF00\PurePerms\PurePerms::getPlayerGroup(pocketmine\Player object)
#9 plugins/ScoreHud_dev-39.phar/src/JackMD/ScoreHud/ScoreHud(229): yexeed\banana\BananaAddon->getProcessedTags(pocketmine\Player object)
#10 plugins/ScoreHud_dev-39.phar/src/JackMD/ScoreHud/ScoreHud(264): JackMD\ScoreHud\ScoreHud->process(pocketmine\Player object, string ..f...... ............ ..7- {pref} )
#11 plugins/ScoreHud_dev-39.phar/src/JackMD/ScoreHud/ScoreHud(208): JackMD\ScoreHud\ScoreHud->displayDefaultScoreboard(pocketmine\Player object)
#12 plugins/ScoreHud_dev-39.phar/src/JackMD/ScoreHud/ScoreHud(171): JackMD\ScoreHud\ScoreHud->updateScore(pocketmine\Player object)
#13 plugins/ScoreHud_dev-39.phar/src/JackMD/ScoreHud/task/ScoreUpdateTask(77): JackMD\ScoreHud\ScoreHud->addScore(pocketmine\Player object, string ..l..eBanana..dPE)
#14 src/pocketmine/scheduler/TaskHandler(159): JackMD\ScoreHud\task\ScoreUpdateTask->onRun(integer 1861)
#15 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 1861)
#16 src/pocketmine/plugin/PluginManager(688): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 1861)
#17 src/pocketmine/Server(2558): pocketmine\plugin\PluginManager->tickSchedulers(integer 1861)
#18 src/pocketmine/Server(2334): pocketmine\Server->tick()
#19 src/pocketmine/Server(2195): pocketmine\Server->tickProcessor()
#20 src/pocketmine/Server(1774): pocketmine\Server->start()
#21 src/pocketmine/PocketMine(266): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/1_11/, string /home/1_11/plugins/)
#22 (1): require(string phar:///home/1_11/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show