开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜