Restoring database in windows server - "mysql" not recognized command

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • basa
    Senior Member
    • Jan 2002
    • 421
    • 3.0.0 Beta 4

    Restoring database in windows server - "mysql" not recognized command

    Hello,

    I'm moving my forum to a window server and I am doing a test run, when I get to the part about restoring the database I follow these directions -

    [1On the new server, if necessary, create the database which your vBulletin will be installed in. Refer to your host for specific information on how this is done.2Telnet/SSH into machine2.3Type:
    mysql –uUSERNAME –p NEWDBNAME < /PATH/TO/NEW/DUMP.sql

    The problem is that command line nor telnet will recognize that command. How do I restore the database on a window server?

    Thank you,

    Sebastian
    Sebastián J. Bianchi

  • Steve Machol
    Former Customer Support Manager
    • Jul 2000
    • 154488

    #2
    What happens exactly when you do this?
    Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
    Change CKEditor Colors to Match Style (for 4.1.4 and above)

    Steve Machol Photography


    Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


    Comment

    • basa
      Senior Member
      • Jan 2002
      • 421
      • 3.0.0 Beta 4

      #3
      Originally posted by Steve Machol
      What happens exactly when you do this?
      It says

      "'mysql' is not recognized as an internal or external command, operable program or batch file".
      Sebastián J. Bianchi

      Comment

      • Steve Machol
        Former Customer Support Manager
        • Jul 2000
        • 154488

        #4
        This means that either 'mysql' is not installed on this server, or it is not in the default path. Try using the full path to mysql.
        Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
        Change CKEditor Colors to Match Style (for 4.1.4 and above)

        Steve Machol Photography


        Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


        Comment

        • basa
          Senior Member
          • Jan 2002
          • 421
          • 3.0.0 Beta 4

          #5
          Originally posted by Steve Machol
          This means that either 'mysql' is not installed on this server, or it is not in the default path. Try using the full path to mysql.
          Installed it is, for sure.

          Do you know a file that can I search for to make sure I find/have the right path?
          Sebastián J. Bianchi

          Comment

          • conqsoft
            Senior Member
            • Jul 2003
            • 3803
            • 3.6.x

            #6
            Search for mysql.exe.
            vBulletin v3.8.0's Implementation of Google Adsense Should Be Avoided At All Costs - Do Your Own Adsense Implementation

            Comment

            • basa
              Senior Member
              • Jan 2002
              • 421
              • 3.0.0 Beta 4

              #7
              Ok I see a mysql directory with subdiretories (Bench, Bin, data...) which one is "the" root directory?
              Sebastián J. Bianchi

              Comment

              • conqsoft
                Senior Member
                • Jul 2003
                • 3803
                • 3.6.x

                #8
                Originally posted by basa
                Ok I see a mysql directory with subdiretories (Bench, Bin, data...) which one is "the" root directory?
                The executable should be in the BIN directory.
                vBulletin v3.8.0's Implementation of Google Adsense Should Be Avoided At All Costs - Do Your Own Adsense Implementation

                Comment

                • basa
                  Senior Member
                  • Jan 2002
                  • 421
                  • 3.0.0 Beta 4

                  #9
                  Thank you!

                  Let me give it a shot.
                  Sebastián J. Bianchi

                  Comment

                  • Zachery
                    Former vBulletin Support
                    • Jul 2002
                    • 59097

                    #10
                    Normally it would be under

                    C:\mysql\bin

                    or

                    c:\program files\mysql\bin

                    If its not in either of thoughs then you should contact your host.

                    Comment

                    • basa
                      Senior Member
                      • Jan 2002
                      • 421
                      • 3.0.0 Beta 4

                      #11
                      Originally posted by Zachery
                      Normally it would be under

                      C:\mysql\bin

                      or

                      c:\program files\mysql\bin

                      If its not in either of thoughs then you should contact your host.
                      Thank you, that did the trick. It's working ok. I'm my own host (dedicated server). Scary, isn't it?
                      Sebastián J. Bianchi

                      Comment

                      • Zachery
                        Former vBulletin Support
                        • Jul 2002
                        • 59097

                        #12
                        If your going to be running windows and IIS make sure to run php as ISAPI instead of CGI or FastCGI

                        Comment

                        • basa
                          Senior Member
                          • Jan 2002
                          • 421
                          • 3.0.0 Beta 4

                          #13
                          Originally posted by Zachery
                          If your going to be running windows and IIS make sure to run php as ISAPI instead of CGI or FastCGI
                          Thank you, that was an option that I wasn't sure how to configure.
                          Sebastián J. Bianchi

                          Comment

                          • Zachery
                            Former vBulletin Support
                            • Jul 2002
                            • 59097

                            #14
                            If you have questions on php and mysql on windows pop into the server configuration, I know we have a few big windows gurus who are hanging around and can probaly helpout

                            Comment

                            • basa
                              Senior Member
                              • Jan 2002
                              • 421
                              • 3.0.0 Beta 4

                              #15
                              Originally posted by Zachery
                              If you have questions on php and mysql on windows pop into the server configuration, I know we have a few big windows gurus who are hanging around and can probaly helpout
                              Will do, thanks again.
                              Sebastián J. Bianchi

                              Comment

                              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                              Working...
                              😀
                              😂
                              🥰
                              😘
                              🤢
                              😎
                              😞
                              😡
                              👍
                              👎