mysql备份。无法连接到localhost错误 [英] mysql backup. can't connect to localhost error

查看:88
本文介绍了mysql备份。无法连接到localhost错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!



我正在使用此代码来备份我在服务器上传的mysql数据库。我在vb.net中有一个备份我的数据库的应用程序。



Hi!

I am using this code in order to backup my mysql db uploaded in the server. I have an application in vb.net that backs up my database.

Process.Start("C:\Program Files\MySQL\MySQL Server 5.6\bin\mysqldump.exe", "-uusername -ppassword db -r""" & txtpath.Text & "\backup.sql""")





我总是得到一个错误,mysql无法连接到localhost,如命令提示符所述。



任何帮助将不胜感激。上帝保佑!



I always get an error that mysql cannot connect to localhost as stated by the command prompt.

Any help will be appreciated. God bless!

推荐答案

-u和用户名之间需要一个空格。



注意-p和密码之间不能有空格(见上一篇文章)



如果仍然出现错误,请检查您正在使用的用户标识的权限...请参阅此参考 http://dev.mysql.com/doc/mysql-enterprise-backup/3.5/en/mysqlbackup.privileges.html [ ^ ]
You need a space between "-u" and the username.

NB there must NOT be a space between "-p" and the password (see your previous post)

If you still get the error then check the permissions for the user id that you are using ... see this reference http://dev.mysql.com/doc/mysql-enterprise-backup/3.5/en/mysqlbackup.privileges.html[^]


这篇关于mysql备份。无法连接到localhost错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆