mysql - xampp - connecting to a local database from another local machine inside a LAN -


I am using XAMPP to create php projects. My system is: name = con7 and local ip = 192.168.1.20 is another system: name = con12 and local ip = 19.168.1.10

I want to connect con7 to a database in con12.

I have read that we need to allow access to the host (IP) that connects to a different machine such as an access host in the CAPNL-> database (the control panel for Linux hosting) Is trying.

I have access to that system because that person (Con7) enters data and manipulates me.

How to do this

Join the remote database to ensure that :

  • The mysql-server has to listen to a public interface (for example eth0) so that access can be done through LAN.
  • The mysql-user must be allowed to connect at least 192.168.1.20 or% (i.e. all hosts)
  • On port 3306 (default MySQL port) tested by Telnet May go. Mysql- The user has read the permissions (write +) for the database

Do you want to run a PHP-script that should add the correct credentials to mysql_connect (). If you want to use your local phpmyadmin to work with the database, then you have to add the database to phpmyadmin-config.

Hope that helps.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -