I am trying to use mysql_connect to connect to a database hosted on www.domain2.com from www.domain1.com. I have all the addresses correct and I have given access to the db from the domain name www.domain1.com. I am getting the following error:
Fatal error: Lost connection to MySQL server at 'reading initial communication packet', system error: 111 in
I have searched the net and everything talks about SSH, I don't know anything about SSH! I just want to know why it isn't working?
Do you own the servers or are they hosted? Do you know if the domains are on the same server? It could be that the MySQL server isn't set to listen to anything other than localhost.
Bookmarks