I have two Database, A & B how I can copy data from A to B using MySQL, i did like there something wrong, there are two same tables called members in A & B, and i want copy username from A.members to B.members. there is error ! can I do that using Mysql, anyone can help me to solve this problem because I must connect to databases A & B in same time then query data
mysql_connect("$host", "$user", "$pass"); mysql_select_db("A");
mysql_connect("$host", "$user2", "$pass2"); mysql_select_db("B");
//host A = host B same host
$MySQL="Select username FROM A.members INSERT INTO B.members";
$result= mysql_query($MySQL);