Yokito
September 22, 2023, 11:13am
1
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
Yokito
September 22, 2023, 7:44pm
3
Is there a way to fix it?
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
Yokito
September 30, 2023, 10:44pm
5
This problem already solved!
The error persist due to missing php extension (mysql). I just install that missing extension in the cyber panel (PHP>PHP Extension).
system
Closed
October 1, 2023, 1:44am
6
This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.