mysql ERROR

1 reply
semenov
semenov's picture
Joined: 05/29/2010
User offline. Last seen 10 weeks 6 days ago.

I have it set up to the following:

Frontend IP: MY MAIN IP (removed for security)
Frontend port: 3305

Backend server name: localhost
Backend IP: 127.0.0.1
Backend port: 3306

It says this in the database section:
Database: MY DATABASE (removed for security)
Listener settings
Name: Default Proxy
Frontend: MY.MAIN.IP:3305
Backend: localhost:3306
Status: Listener is 'OK'
Type: mysql

1 mysql -h 127.0.0.1 -P 3305 -u root -p
ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1'
i can connect only mysql -h (my.ip) -P 3305 -u root -p

i

Phy
Phy's picture
Joined: 06/06/2010
User offline. Last seen 2 days 8 hours ago.

it is normal :p

because you have set your main ip as Frontend Ip :D.

if you want to be able to connect with your localhost address, you must set 127.0.0.1 in Frontend IP.

At the end, if you want to use both localhost and main ip, i think the only solution is to create two proxy (one with 127.0.0.1 in Frontend, and the other with your main ip)

Back to top