MYSQL WorkBench Not Connecting to Database

ぃ、小莉子 提交于 2019-12-13 20:15:25

问题


MySQL workbench is not connecting to server in localhost.

But, I was able to connect using command line. Now access denied in workbench and command prompt.

tried re-install Mysql, its working first time. after system (computer) restart, its not working again.

Tried to connect using workbench 5.2.

what is wrong with my installation or do i need to do any thing in Mysql.

I am using windows 8.1


回答1:


This works only if you are connecting to localhost.

Use 127.0.0.1 as you hostname or simply type in "localhost" and Mysql server port being 3306. And Make sure there are no spaces after username. It might sometime cause you trouble.




回答2:


is the MySQL database server on? go to command line and (er..at least in unix) you do /sbin/service mysqld start, in windows you do

"C:\Program Files\MySQL\MySQL Server 5.0\bin\mysqld"

I think the server stops every time you restart your computer unless you setup a bit. In UNIX, to start the mysqld server at boot time you have to copy support-files/mysql.server to the right place for your system. Not sure about Windows.

If that didn't help, try here? https://superuser.com/questions/666521/how-do-i-start-a-mysql-server-in-windows



来源:https://stackoverflow.com/questions/26078528/mysql-workbench-not-connecting-to-database

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!