Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Trouble restoring a mysql database

Trouble restoring a mysql database

Scheduled Pinned Locked Moved Database
helpdatabasemysqlsysadmin
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    savedlema
    wrote on last edited by
    #1

    Dear friends, For days now, I have been trying to restore a backup of the database (with command prompt) I had made with mysqldump. This is my line of code. "C:\Program Files\MySQL\MySQL Server 5.5\mysql --user=root --password=mypassword --host= localhost --port= 3306 --database=dbname < C:/Backup/dbname.sql" I get "The filename, directory name, or volume lable syntax is incorrect" error messsage. I have googled for this error to no avail as to do with mysql. - My mysql server is up and running with no problem. (Even the mysqldump command works) -Problem is the same even if I open the command prompt from C:\Program Files\MySQL\MySQL Server 5.5\mysql -I have tried to remove "", did not help. - I tried to change / with \ but no success. For this one, I will really appreciate any help.

    B 1 Reply Last reply
    0
    • S savedlema

      Dear friends, For days now, I have been trying to restore a backup of the database (with command prompt) I had made with mysqldump. This is my line of code. "C:\Program Files\MySQL\MySQL Server 5.5\mysql --user=root --password=mypassword --host= localhost --port= 3306 --database=dbname < C:/Backup/dbname.sql" I get "The filename, directory name, or volume lable syntax is incorrect" error messsage. I have googled for this error to no avail as to do with mysql. - My mysql server is up and running with no problem. (Even the mysqldump command works) -Problem is the same even if I open the command prompt from C:\Program Files\MySQL\MySQL Server 5.5\mysql -I have tried to remove "", did not help. - I tried to change / with \ but no success. For this one, I will really appreciate any help.

      B Offline
      B Offline
      Bernhard Hiller
      wrote on last edited by
      #2

      Get the MySQL GUI Tools and try with them. That's the easiest way. My impression is that you do something wrong with spaces and quotation marks. What about

      "C:\Program Files\MySQL\MySQL Server 5.5\bin\mysql.exe" --user=root --password=mypassword --host=localhost --port=3306 --database=dbname < "C:\Backup\dbname.sql"

      In case of the GUI tools, you need not worry about that.

      S 1 Reply Last reply
      0
      • B Bernhard Hiller

        Get the MySQL GUI Tools and try with them. That's the easiest way. My impression is that you do something wrong with spaces and quotation marks. What about

        "C:\Program Files\MySQL\MySQL Server 5.5\bin\mysql.exe" --user=root --password=mypassword --host=localhost --port=3306 --database=dbname < "C:\Backup\dbname.sql"

        In case of the GUI tools, you need not worry about that.

        S Offline
        S Offline
        savedlema
        wrote on last edited by
        #3

        Thank you. I got through it, and yes, the trick was to remove " before the first --user...

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups