External database connection

mati771

Member
Jul 16, 2022
5
0
1
Poland
cPanel Access Level
Root Administrator
Hi,
I have a problem connecting an external vps server to the cpanel database.
I added the ip of the external database server to the cepanel database.
123dasasdsad.png

The php file to connect to the database has been completed correctly:

<?php
$host = "ip";
$db_user = "user";
$db_password = "password";
$db_name = "dbname";
?>


I turned on error display. Shows:
Error: 1044 Description: Access denied for user 'xxx'@'ipadres' to database 'dbename'
 
Last edited by a moderator: