Can't connect php script to phpMyAdmin database

Im having a hard time connceting to my database. I’m using phpMyAdmin. Can anyone help me please?

Current Version: 2.3
Build: 4
Current Commit: d65b6b5bcd4e89ce1a0eeb74131f98093e85bb3a
Latest Version: 2.3
Latest Build: 4
Latest Commit: d65b6b5bcd4e89ce1a0eeb74131f98093e85bb3a

This is my config.php script

<?php $servername = "localhost"; $username = "poms_admin"; $password = ""; $dbname = "poms_dbase"; // Create connection $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } echo "Connected successfully"; // Close connection $conn->close(); ?>

You can’t connect because there is a problem with the latest version of cyberpanel

1 Like

Is there a way to fix it? :cry:

What I can tell you at the moment is that with the previous build it works:
Current Version: 2.3
Build: 4
Current Commit: 2b7c8104b47669c609a28e468bbd435ec2192827
Latest Version: 2.3
Latest Build: 4Latest Commit: d65b6b5bcd4e89ce1a0eeb74131f98093e85bb3a

This problem already solved! :+1:

The error persist due to missing php extension (mysql). I just install that missing extension in the cyber panel (PHP>PHP Extension).

This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.