Moderators: muppetmaster, Moderator, Support
milksnake12 wrote:___________________________________________
Could not connect to the server '192.XXX.XXX.XXX' ;I am using the inet addr from the ifconfig command. Is that correct?
Lost connection to MySQL server at 'reading initial communication packet', system error: 110Access denied for user 'root'@'localhost' (using password: NO)
____________________________________________
I entered in the correct user, password and db. I took iptables down. I also entered in info to a db that is on the webservers localhost and it connected fine, I just can't for the life of me find a way to get connected to my Asterisk server's db.
<
110Access denied for user 'root'@'localhost' (using password: NO)
dalenoll wrote:Unfortunately, at this point I am a little confused. You have your Asterisk server with the mysql database on it. You have a system out on the Internet where you have a web server running. Is this correct?
Which server were you issuing the mysql command line on? Is it the same server as the web server or are they different? If they are different, you will need to grant access to the mysql account for the address of the server you are connecting from.
dalenoll wrote:Is your Asterisk server behind a router that is providing NAT?
Is the address of your Asterisk box 192.168.x.x?
If the answer to either of these is yes, then you will need to make a change to the router in order to allow the connection from your remote server to be forwarded to your Asterisk server. The concept of port forwarding is common, but different routers have different ways of doing that so you may have to do a bit of research.
Next you will need to know your public IP address. You can get that from your router as well. There are websites you can go to from within you home network that will tell you, or you could check your remote server to see what IP address you are connecting from.{/quote]
I did some reading on these and I added a port forward in my router settings for port 3306 (read this is the mysql port (y/n)), and entered to ip of my server (the 192.168.x.x). I then switched the 192.168.x.x ip to my public one in the php script you gave me above (still didn't connect, but not sure it will yet).Once that is all in place, then you can worry about putting the IP address of you remote server into the your local mysql database to allow access.
Users browsing this forum: No registered users and 28 guests