I can't access my database in 000webhost

I can’t access my database. I can’t log in. My username is myusername and my password is mypassword

mysqli_real_connect(): (HY000/1045): ProxySQL Error: Access denied for user ‘id10742980_myusername’@‘2a02:4780:bad:c0de::19’ (using password: YES)

DB NAME= |id10742980_contacts
DB USER = id10742980_myusername
DB HOST = localhost

This is my code.

<?php $servername = "localhost"; $username ="myusername"; $password ="mypassword"; $database = "contacts"; try { $conn = new PDO("mysql:host=$servername;dbname=contacts",$username,$password); $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); echo "Connected successfully"; } catch(PDOException $e) { echo "Connection failed: " . $e->getMessage(); } if(isset($_POST['submitbutton'])){ $firstName = $_POST['firstName']; $lastName = $_POST['lastName']; $cellphoneNumber = $_POST['cellphoneNumber']; $email = $_POST['email']; $ttype = $_POST['ttype']; $sql = 'INSERT INTO data(firstName,lastName,cellphoneNumber,email,ttype) VALUES(:firstName,:lastName,:cellphoneNumber,:email,:ttype)'; $statement = $conn->prepare($sql); if ($statement->execute([':firstName' => $firstName, ':lastName' => $lastName, ':cellphoneNumber' => $cellphoneNumber, ':email' => $email, ':ttype' => $ttype])) { $message = 'Nude Sent!!!!!!!!!!!!!!!!'; echo ""; } } ?>

Try resetting the password via our panel.

Use the test PDO script below too and post back with results

You must have failed to read this as you’ve not included your URL.

This topic was automatically closed after 23 hours. New replies are no longer allowed.