What is the connection between PHP and MYSQL?

want to check
I have a problem with MYSQL now
I have installed XAMPP
so my localhost already has a phpmyadmin
, but I also have mysql and phpmyadmin
installed on my other host (linode), so this is another MYSQL
want to check
if I want localhost to be able to access MYSQL on my linode (get data, etc.) and I don"t want to use local MYSQL
how can this be achieved?

Mar.11,2021

mysql_connect(linodeservername,linodeusername,linodepassword);

ip+ port number of linode. Default should be port 3306
try the link


mysql and change bindip


the same as your usual local database

another is that you need the permission of remote links owned by your mysql account on linode

Menu