Resetting or Reinstalling MySQL on Mac 0S10.3.8

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default Resetting or Reinstalling MySQL on Mac 0S10.3.8

    I recently dug out an old machine and began workingon it again. I soon found
    that although I had a note of the MySQL password, I had no idea what the
    username was. I have no significant data so I don't mind wiping of the old
    MySQL installation if necessary, or I could simply set up a new user and
    password. Can anyone help me with the correct way to do either of these things
    or a better alternative. Cheers Dave

    davecheet Guest

  2. Similar Questions and Discussions

    1. Help Reinstalling CFMX
      I need help reinstalling CFMX. I don't know why I am having such a problem. It goes through the set up process and stops. Windows installer message...
    2. REinstalling 4.0
      Thanks guys. I do have 4.05c. Adobe refuses to provide the installer, insisting of course that I pay them another $100 to buy the program again, of...
    3. [PHP] reinstalling php with imap
      You will need the header files as well. I belive you are using the washignton uni. imap system. why don't you download a new tarball? all the...
    4. reinstalling tcp/ip
      Anybody got information on how I reinstall tcp/ip within windows xp?
    5. Reinstalling xp
      If this is to be a clean install then you can boot with the XP CD and if necessary format the partition using the Recovery Console (info on how to...
  3. #2

    Default Re: Resetting or Reinstalling MySQL on Mac 0S10.3.8

    davecheet wrote:
    > I recently dug out an old machine and began workingon it again. I soon found
    > that although I had a note of the MySQL password, I had no idea what the
    > username was.
    Probably "root", which is the name of the superuser on MySQL.

    If you install a new version of MySQL on OS X, it will not upgrade the
    existing version, but simply create a completely new installation.
    According to the folks at MySQL, this is because the Mac installer
    doesn't make upgrading possible (don't ask me if it's true, it's just
    what the readme notes say). When MySQL is installed, it goes in a folder
    with a very long name, unique to the MySQL version, but then creates an
    alias called "mysql".

    This is not a problem if you want a fresh install, and don't need to
    transfer any data from an existing version. However, if you need to
    conserve disk space, you will have to remove the old version by hand.
    Instructions are in the readme file that comes with MySQL.

    --
    David Powers
    Author, "Foundation PHP 5 for Flash" (friends of ED)
    Co-author "PHP Web Development with DW MX 2004" (Apress)
    [url]http://computerbookshelf.com[/url]
    David Powers Guest

  4. #3

    Default Re: Resetting or Reinstalling MySQL on Mac 0S10.3.8

    Unfortunately, reinstalling doesn't seem to be an option. I've tried
    repeatedly and I always get a "there has been an error during installation"
    just when it seems installation is about o be completed. I have downloaded
    MySQL several times, even using other machines in case something happens to the
    files on download or decompression but I always get the same error.

    Anyone have any other suggestions?

    davecheet Guest

  5. #4

    Default Re: Resetting or Reinstalling MySQL on Mac 0S10.3.8

    davecheet wrote:
    > Unfortunately, reinstalling doesn't seem to be an option. I've tried
    > repeatedly and I always get a "there has been an error during installation"
    > just when it seems installation is about o be completed.
    Did you try root as the username?

    The reason for the error during installation is likely to be the fact
    that the existing version of MySQL is running. You need to stop it
    before installing a new version. Presumably MySQL is starting up
    automatically because of the existence of a StartupItem. You could
    remove the StartupItem, restart your computer, and try again.

    Alternatively, you can zap the old version of MySQL.

    ** I have tested this technique on OS X 10.3, and know it works, but
    proceed at your own risk **

    Make sure you're logged on as an administrator, then open Terminal. Type
    the following commands:

    cd /usr/local
    ls -l

    That will provide a list of the directory contents. Among them will be a
    symbolic link to mysql (mysql followed by -> and a long name). Below
    that, you should see the actual mysql directory (it will have a name
    like mysql-standard-4.1.7-apple-darwin7.6.0-powerpc).

    Type the following at the Terminal shell prompt, but *don't* press Return:

    sudo rm -r

    Make sure there is a space after the final r. Highlight the name of the
    mysql directory, Ctrl-click, and select Paste Selection. That should
    give you something like this:

    sudo rm -r mysql-standard-4.1.7-apple-darwin7.6.0-powerpc

    Press Return. You will be prompted for your Mac password. MySQL will be
    gone completely, and irretrievably (it won't be in Trash).

    Next type:

    cd /Library/Receipts
    ls

    The name of the package receipt that you need to delete will be the same
    as the long mysql name previously, but with .pkg on the end. So the
    command will look something like this (depending on the number of your
    actual version):

    sudo rm -r mysql-standard-4.1.7-apple-darwin7.6.0-powerpc.pkg

    Press Return, and enter your password if prompted.

    You should now be able to install MySQL. If you encounter any problems,
    read the Readme.txt that comes in the MySQL disk image.

    --
    David Powers
    Author, "Foundation PHP 5 for Flash" (friends of ED)
    Co-author "PHP Web Development with DW MX 2004" (Apress)
    [url]http://computerbookshelf.com[/url]
    David Powers Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139