04-14-2023, 10:12 PM
to connect to a local db, just use "localhost" as mysql host
to connect to a remote db, use remote ip (real external ip of server)
however, to connect to a mysql from remote, you need to do some settings in mysql.
open my.cnf,
bind-address = 127.0.0.1, 88.33.44.55 (your external real ip)
after that, you need to give your user to connect from outside mysql server.
open mysql console (or do in phpmyadmin, privileges)
grant all privileges on db.* to user@'yourip' identified by 'pass';
flush privileges;
(if you have firewall, you need to open port 3306)
Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
to connect to a remote db, use remote ip (real external ip of server)
however, to connect to a mysql from remote, you need to do some settings in mysql.
open my.cnf,
bind-address = 127.0.0.1, 88.33.44.55 (your external real ip)
after that, you need to give your user to connect from outside mysql server.
open mysql console (or do in phpmyadmin, privileges)
grant all privileges on db.* to user@'yourip' identified by 'pass';
flush privileges;
(if you have firewall, you need to open port 3306)
Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.