Can't get mysqldump to connect to local mysql instance (error 2003 / 10061)

空扰寡人 提交于 2019-12-05 08:31:12

To connect through a port (and not the default 3306), use:

mysqldump -u root -pmypassword -P 3308 dbname > out.sql

Besides that, a simple test to see if MySQL responds at port 3308 is to try telneting:

telnet 127.0.0.1 3308

If MySQL is listening on port 3308, it'll respond with an error and the version running.

Go to run type services.msc

then locate mysql service and start it .this solved

If your Mysql-Client is 5.5.16 please upgrade it to 5.6.10, this process worked for me if your mysql server is 5.6.10.

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