3 Replies - 2100 Views - Last Post: 18 September 2013 - 06:33 AM

#1 Tristan Karl  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 04-August 13

mysql backup error, can't connect to localhost

Posted 15 September 2013 - 09:48 PM

Hi!

I'm using this code in order to backup my mysql database.
  Process.Start("C:\Program Files\MySQL\MySQL Server 5.6\bin\mysqldump.exe", "-uusername -ppassword db -r""" & txtpath.Text & "\backup.sql""")



However, the command prompt shows an error stating it cannot connect to localhost, which apparently keeps my db from being backed up.

Any help will be appreciated! Thank you and God bless!

Is This A Good Question/Topic? 0
  • +

Replies To: mysql backup error, can't connect to localhost

#2 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 10563
  • View blog
  • Posts: 39,087
  • Joined: 27-December 08

Re: mysql backup error, can't connect to localhost

Posted 15 September 2013 - 09:50 PM

Moved to MySQL. The Site Questions and Support forum is for issues regarding site usability.
Was This Post Helpful? 0
  • +
  • -

#3 torind_2000  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 57
  • View blog
  • Posts: 292
  • Joined: 22-August 11

Re: mysql backup error, can't connect to localhost

Posted 16 September 2013 - 09:58 AM

Why do you have extra quotes?
Was This Post Helpful? 0
  • +
  • -

#4 Curtis Rutland  Icon User is online

  • (╯□)╯︵ (~ .o.)~
  • member icon


Reputation: 4487
  • View blog
  • Posts: 7,816
  • Joined: 08-June 10

Re: mysql backup error, can't connect to localhost

Posted 18 September 2013 - 06:33 AM

I'd guess its VB.NET, that's the way to embed a quote character in a string.

What happens when you run the command yourself from the command prompt, instead of trying to do it with code?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1