Now a problem with MySQL

Discussion in 'Mac Basics and Help' started by Hippocrates1985, Jul 15, 2010.

  1. Hippocrates1985 macrumors member

    Joined:
    Oct 13, 2008
    #1
    Hi,

    After i have fixed the problem with my localhost here :-

    http://forums.macrumors.com/showthread.php?t=966986

    I have another problem with MySQL.

    I have downloaded it and everything was good. I start Terminal and I typed the following:-

    sudo mysql_secure_installation

    Then:-

    I put my password.

    After the surprise was :-

    command not found

    Please help

    Thank you
     
  2. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #2
    Well, mysql_secure_installation isn't a command, it's likely a script. Try either,
    Code:
    sudo ./mysql_secure_installation
    or
    sudo sh mysql_secure_installation
     
  3. Hippocrates1985 thread starter macrumors member

    Joined:
    Oct 13, 2008
    #3
    what's up angelwatt ?

    Thank u for ur try.

    I tried the first one:-

    sudo ./mysql_secure_installation

    The result was :-

    command not found

    Then I tried the second one :-


    The result was :-

    No such file or directory


    :-( please help
     
  4. ethical macrumors 68000

    Joined:
    Dec 22, 2007
  5. Hippocrates1985 thread starter macrumors member

    Joined:
    Oct 13, 2008
  6. ethical macrumors 68000

    Joined:
    Dec 22, 2007
    #6
    So you downloaded the DMG, extracted it, and installed from the .pkg, then the preference pane?
     
  7. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #7
    From Terminal, when I do,
    Code:
    which mysql_secure_installation
    I get
    Code:
    /Applications/MAMP/Library/bin/mysql_secure_installation
    because I have MySQL installed as part of the MAMP install. Give it a shot. If nothing is shown, then either MySQL didn't install correctly, or the path environment variable was not setup correctly. You may also want to try login out and back in to see if it makes a difference. From the video, there was 3 things to install, did all of those go off without a hitch?
     
  8. papabill, Nov 25, 2010
    Last edited: Nov 25, 2010

    papabill macrumors member

    Joined:
    Nov 24, 2010
    #8
    I got the proper one for a PPC and installed it according to the same "tutorial", but when I get to the 'sudo mysql_secure_installation', I get the "command not found" as well, and even though it says MySql is running (according to System Preferences-->MySql), when I go to FireFox and type in 'localhost/phpmyadmin/index.php' it gives me 'ERROR-MySQL said: #2002-The server is not responding (or the local MySQL server's socket is not correctly configured)'
     
  9. Hydramus macrumors member

    Joined:
    Jun 30, 2007
    #9
    The script mysql_secure_installation might not be installed in your $PATH so you will need to either type out the whole path or cd to that directory where the script and then use the sudo ./mysql_secure_installation.
     
  10. wpotere Guest

    Joined:
    Oct 7, 2010
    #10
    Check the path, but also check the permissions on the directory and file. It sounds to me like the script may not have the proper permissions to the files.
     

Share This Page