Cannot Set MySQL Password

I recently installed the latest version of MySql. I tried to set a password in terminal using the steps shown below.
However, I get the error message below.
Welcome to Darwin!
[localhost:~] helpprob% alias mysql=/usr/local/mysql/bin/mysql
[localhost:~] helpprob% mysql -u root -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
[localhost:~] helpprob%
Maybe terminal wants me to type my previous sql password. If so,I don't remember what is is. I would appreciate any help.

See the MySQL document: http://dev.mysql.com/doc/refman/4.1/en/resetting-permissions.html
The document says "Log on to your system as ... the Unix root user". But on MacOSX you can't do this. Just login to your Mac as an admin user and use "sudo" to get Unix-root privilege (do not confuse with the MySQL-root privilege):
(1) Shutdown the MySQL server
mac$ sudo kill `cat /usr/local/mysql/data/hostname.domain.pid`
Password: (enter admin password for your Mac; not the mysql password)
(If you have the MySQL Preference Pane in "System Preferences", then you can use it to shutdown the server)
(2) create mysql-init (as described in the document) in your home directory, and
(3) restart the server with a special option
mac$ sudo /usr/local/mysql/bin/mysqld_safe --init-file=$HOME/mysql-init &
(4) delete mysql-init in your home directory.

Similar Messages

  • MySQL Manager, cannot set MySQL password in order to connect...

    I just installed the default MySQL files for the MySQL server (v4.1.13a) included with Tiger Server (v10.4.3). I was connected to the server remotely with Remote Desktop. I checked the box to allow network connections, and then briefly lost connection to the server via Remote Desktop as I was entering the password in the verify password field. Once I reestablished a connection to the server via Remote Desktop, all seemed okay. So, I tried connecting to the MySQL server with CocoMySQL (v0.5), but was refused connection. The firewall is not blocking the MySQL port. MySQL > Status shows that MySQL is running and shows root@localhost as the current user. I've tried connecting with the usernames root, admin and mysql with the password that I set in the MySQL Manager and with the passwords of the root and admin users of the server... but I cannot establish a connection via CocoMySQL. When I go to the MySQL Manager, and stop the service in order to change/ set the mysql password, but I am unable to because the verify field is not editable. Any thoughts? Thanks!

    What you need to do is open the MySQL Manager in the Server folder in Applications. Click the lock to authenticate. Stop the service. Click the Allow connections box and then start the service again. That just worked for me.

  • T410 Intel SSD 335 Cannot Set BIOS Password

    I upgraded my harddrive on my T410 to an Intel 335 SSD.  I cannot encrypt the drive in the BIOS using the harddrive password option.  After typing  the passwords the option remains "disabled".
    I have the latest BIOS for the T410.
    Any ideas?--Thanks

    First, make sure you have the latest BIOS on your T410. Then, if it doesn't work, I suggest that you use caution. Disk passwords do work on the T410, so there is something related to the drive that is incompatible with the way ThinkPads build and set encrypted passwords. I have never used that particular drive, so I don't know if it is a problem with Intel 520 drives in general or that particular drive. I would try the drive on another machine. If I remember correctly, the encryption scheme is the same for T400, T410, T420, T430 and other ThinkPad machines of the same vintage. You do not want to end up with an expensive drive that you can only use as a coaster.

  • Cannot set firmware password

    At my company, we have a  MacBookPro8,2, running Lion v10.7.3..  We are trying to set the firmware password on it and don't seem to be able to do so.  Booting from the Recovery Partition, we choose the Firmware Password Utility, turn it on and set the password.  Upon rebooting and holding down the Alt/Option key on the keyboard, we are not presented with the lock icon, nor are we asked to enter the password we just set.  Booting back into the Recovery partition and opening the Firmware Password Utility, we must enable it again and set the password again.
    Has anyone else experienced this issue?  It doesn't seem to happen on older models.  I've also performed this on a brand new Mac Mini without having any issues.

    Since it's a relatively new machine, contact Apple's Express Lane..

  • V240 cannot set admin password.

    After installing a new motherboard in a V240 system, I started up the system.
    It got to the SC> prompt. Now any command such as console -f
    or resetsc gives me an error saying that the admin password is not set and to set it.
    So I enter a password and reconfirm it.
    But then when I try any other command again, it does the same thing "admin password is not set, to set it now"
    I think the password I enter is valid as it contains letters and numbers and is long enough. It also doesn't tell me that its not valid. After confirming the password, the system waits for about 2 seconds and then goes back to the sc> prompt.
    anybody know what the problem could be?

    After switching the SCC card, I was able to set the admin password and use commands in the sc> such as poweroff/poweron.
    However when I do poweron, the system says something like 'hard disk failure' for all the disks.
    I don't understand why its doing this. After rebooting the machine, again i was having problem.
    It got to a login prompt. I entered 'admin' but the password previously set doesn't work. I don't know anymore if its hardware or software issue.
    There are no users created in the sc> because I was unable to because of the initial problem I had were the password would be accepted but wouldn't work.
    This is a brand new motherboard just installed so everything is fresh (default).

  • Cannot set GW-password

    I migrated a GW703 system on NW to OES2 and GW801.
    Now i am not able to change existing passwords or set new one for new
    users.

    miko wrote:
    > I migrated a GW703 system on NW to OES2 and GW801.
    > Now i am not able to change existing passwords or set new one for new
    > users.
    Since this is now GW8, please post your question to the GW8 forum.
    Novell Knowledge Partner
    Enhancement Requests: http://www.novell.com/rms

  • Cannot set root password

    I just installed "Don't Panic". The install seemed to go OK, but when I attempt to set the root password I get the message
    passwd: Authentication token lock busy
    I would appreciate information on how to do this.

    Problem resolved. It must have been a glitch in the original install as a reinstall solved problem.

  • I cannot set up password to my airport extreme?

    after reset the airport extreme at my new department, the wifi works immediately, but i stop working once i try to add in security.  i tried WEP password which i used in the past, but the wifi doesnt work as soon as i add in password.
    very frustrating.  Pls help!
    thanks

    CRMDVM wrote:
    You have to do a "soft reset" on the Extreme ...  push in the reset button on the back of the Extreme for 10 seconds then release it -
    I believe you meant to write for one full second.
    Ten seconds will result in a "hard reset" and the need to recofigure it completely.

  • Cannot set password in quick email gadget

    Hi,
    I have the VO setup with the full email gadget pointing to GroupWise to
    evaluate it, and I have the "quick" email gadget point ton a PoP3/SMTP
    server. Everything was working. Now I cannot set the password/user name
    for the "quick" email gadget??
    Any thoughts?

    Rba,
    It appears that in the past few days you have not received a response to your posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
    - Check all of the other support tools and options available at http://support.novell.com in both the "free product support" and "paid product support" drop down boxes.
    - You could also try posting your message again. Make sure it is posted in the correct newsgroup. (http://support.novell.com/forums)
    If this is a reply to a duplicate posting, please ignore and accept our apologies and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • How to set up passwords for two Comcast email accounts on Mail?

    Have Leopard. Cannot set up passwords on Mail for two Comcast email accounts. Does anyone know how to do?

    Hi Paul, & a warm welcome!
    Lineone
    Login
    [email protected]
    Incoming email (IMAP)
    imap.lineone.net
    Incoming email (POP3)
    pop3.lineone.net
    Outgoing email (SMTP)
    smtp.lineone.net
    What port & Authentication are you using?
    Can you login with your credentials in a Browser using the same info?
    In Mail's Window Menu, choose Connection Doctor, any red dots for status, if so what is the exact message?
    Then click the Show Details button & Check again.
    The Password rejection can confuse people since it's a catch all meaning...
    This Password, Username, Authentication method... is not recognized on this Port to this Server, or a server end problem.
    If using a browser to login via WebMail works it's not Name or Password, but one of the other ones.
    The receiving email ports are:
    IMAP is port 143
    IMAP-SSL is port 993
    POP is port 110
    POP-SSL is port 995
    Outgoing ports are...
    SMTP and SMTP-SSL is on ports 25, 587 and 465. Port 587 has to be SSL, and port 465 is enforced TLS-wrapped and is generally used by Outlook users.

  • How do I set a password for adobe reader?

    how do I set a password for adobe reader

    You can set a password for your device (iPad or iPhone) in Settings. You cannot set a password on the Adobe Reader app itself.
    If you want to password protect a PDF document you cannot do it in Reader. It must be done in Acrobat on Macintosh or Windows.

  • Tecra A11-1EG - cannot access BIOS after setting supervisor password

    Hello, I wonder if anyone can help ?
    We have just started to put a supervisor password onto our Tecra A11 laptops so our pupils cannot set passwords on the hard drive etc.
    To get into the BIOS and set a BIOS password, we press F2 as the machine starts.
    We then go into the security option, then supervisor password.
    Having entered the password we want to use twice, we press F10 to save etc.
    The machine starts ok and goes in to windows without a hitch.
    The problem we have now is that we cannot get back into the bios at all.
    As the machine starts we press the F2 key as before but unlike previously the screen just remains blank and the 'Toshiba leading Innovation >>>' screen no longer appears.
    If we keep our finger on the F" key or keep pressing it the laptop just restarts without ever getting to the BIOS screen where I assume we will get asked for the supervisor password we set earlier?
    Is there another key we should be pressing as the laptop starts ?
    I should add we have added a supervisor password for the BIOS security screen on three of our laptops and all three have the same issue.
    Thanks
    Steve

    I think this should be useful for you:
    http://aps2.toshiba-tro.de/kb0/TSB0B032D0000R01.htm
    In some cases you need to press the "INS" key while Toshiba logo appears.
    Then a prompt for the Supervisor Password would appear and if the password is certified then the BIOS could be entered by pressing the "F2" key.

  • I restored my ipad but i was unable to activate it because it is askimg me for the apple id and password eith which i originally set it up. I know the apple id although i do not remember ever using it but i cannot remember the password.

    I restored my ipad but i was unable to activate it because it is askimg me for the apple id and password eith which i originally set it up. I know the apple id although i do not remember ever using it but i cannot remember the password. I have tried everything from reserting my password to trying different passwords but it asks me for a custom question that i dont remember creating.

    You need to use Apple's iForgot service or contact their Account Security team.
    (123152)

  • Cannot set up my email accounts, keep saying "username or password" is not correct, please help!!!!!!!!

    I have been using THUNDERBIRD for more than 10 years, changed and installed into many desktops and laptops. But this time, after I installed in my new desktop WIN8, I cannot set up any of my IMAP accounts. They are not gmail/yahoo. They are my business emails. But the settings I have been using is the same and not changed, tried uninstall, reinstall, I'm copying the exact settings that I have on my laptop (which is working perfectly fine). It kept saying "username or password is wrong"!!! My username is the full email address which I put it correctly. The port is the same port I used on the other computers. I just don't understand why is this happening...my laptop is using WIN8 as well...
    I can install and use with MAILBIRD, so the setting are all correct. But I just can't set any of my 5 accounts (same domain) up on this THUNDERBIRD this time...it's really frustrating.
    Can anyone help please??? Thanks in advance!

    I interesting note:
    MAILBIRD uses port 993 for incoming mail but THUNDERBIRD uses port 143
    When uses 143, it kept " checking capabilities...."
    then I changed to port 993 (like in MAILBIRD), it said "connected to.....mail," but then "timed out"
    Any idea please???? help....extremely frustrated...

  • I need to set a MySql password

         I need to set a password for the root user and create a second user account and set that password in MySQL 5.5.16 on my 10.6.8 mac mini.  I know NOTHING about Terminal so I need super detailed. step by step instructions.  I need to know exactly what to type, where and when I type it.  Once I am done with this I don't need to do anything else in Terminal.  I have a program that uses a MySQL database and it doesn't work completely unless it can log in with a password.
         The program is AudioRack if you''re interested.
    Tracy

    The creator of the AudioRack program recommended Sequel Pro to manage MySQL.  WOW, that works.
    http://www.sequelpro.com/
    Tracy

Maybe you are looking for

  • Where can I get replacement screws for the bottom of my MacBook Pro?

    I have a late 2011 13 inch MacBook Pro. I recently upgraded it from the stock 500 gigabyte 5400 RPM hard drive to a 750 gigabyte 7200 RPM Seagate Momentus XT Solid State Hybrd drive. When I was putting the screws back in the bottom case  I lost one o

  • Spaces With Extended Desktop

    Is there any way to keep the contents of your extended display the same when you change spaces on the primary display? I often watch movies on my TFT or HDTV while working on the other screen. Unfortunately when you switch to another space, the movie

  • Can't  uninstall itunes. missing folder containing itunes64.msi

    I'm having a problem trying to uninstall and reinstall itunes. All of the components were successfully removed except for 'iTunes'. after trying uninstall I keep getting a message : the path cannot be found verify you have access or try to find the i

  • Interface Transmission Encryption & Password Encryption

    When a user logs on to the system through the GUI, is the password going clear text or is it encrypted? What about the Portal? Also, if there is an interface between two SAP systems, do the IDocs go through using an encrypted protocol (internal netwo

  • Can't change saving folder in order to download

    Hi! I couldn't download photoshop because my C folder was full. I tried changing destination folder to D but it won't save file there, even though it says that's the destination folder, so I'm stuck.ynching I tried synching, restarting the computer,