how can i connect to my mysql server using localhost?
this might sound stupid, but i never experienced such thing, im developing on my localhost, but i have my serv开发者_Go百科er with 1 and1, how can i connect to my database on my server using my localhost, what will the host be? thanks
Try just using the string "localhost" as the hostname or the IP address if you know it.
If that doesn't work you could contact the 1 & 1 customer support.
host will be localhost
or 127.0.0.1
(This is IP address for localhost). I hope it will work
First, make sure that mysql is actually listening on localhost (127.0.0.1). You may be connecting over your public IP.
If you want to test running mysql only on localhost, this quick howto shows you what to put in your /etc/my.cnf
Use 'localhost' as your host when connecting between db and localhost. In connecting your server to your database, follow the instructions from your localhost server website.
精彩评论