Skip to main content

Posts

Showing posts with the label localhost

how to remote database mysql XAMPP from another computer?

the script of connection = <? $server = "192.168.0.167"; $username = "root"; $password = ""; $database = "dbbook"; mysql_connect($server,$username,$password) or die("Koneksi gagal"); mysql_select_db($database) or die("Database tidak bisa dibuka"); ?> and i had add this script on my.cnf file after [mysqld] = bind-address=192.168.0.167 but it didnt work with the following caption mycomputer.mshome.net is not allowed to connect to this Mysql server Please help me.How to remote database mysql XAMPP from another computer ?