Bluehost.com Web Hosting $6.95

Mac OS X Newbie - Having difficulty setting a pw for root

This is a discussion on Mac OS X Newbie - Having difficulty setting a pw for root within the MySQL Database forums, part of the Database Forums category; Hi, *Please assist a unix/Mac OS X newbie ~ I just installed the MySQL 5.0.27 binary package for ...


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2007
lee.hogan@gmail.com
 
Posts: n/a
Default Mac OS X Newbie - Having difficulty setting a pw for root

Hi,

*Please assist a unix/Mac OS X newbie ~
I just installed the MySQL 5.0.27 binary package for Mac OSX 10.4 and
am having a lot of difficulty with the post-installation processes.
>From what I've read and understand, I need to set a password for the

root user since, by default, the root account initially has no
password. Using a bash shell on Mac OS X 10.4.8, I've tried setting
the password using this command:

/usr/local/mysql/bin/mysqladmin -u root password mynewpassword

Nothing happens after I press enter. However, when I try to login to
mysql as the root user like this:

/usr/local/mysql/bin/mysql -u root

I get the following error message:

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using
password: NO)

I'm extremely new to all of this and installed MySQL to follow along
with a book I'm reading. I'm trying to familarize myself with creating
fast and efficient databases for my company.

Any assistance would be greatly appreciated~
Thank you~

- a MySQL newbie

Reply With Quote
  #2 (permalink)  
Old 02-19-2007
Captain Paralytic
 
Posts: n/a
Default Re: Mac OS X Newbie - Having difficulty setting a pw for root

On 19 Feb, 16:13, lee.ho...@gmail.com wrote:
> Hi,
>
> *Please assist a unix/Mac OS X newbie ~
> I just installed the MySQL 5.0.27 binary package for Mac OSX 10.4 and
> am having a lot of difficulty with the post-installation processes.>From what I've read and understand, I need to set a password for the
>
> root user since, by default, the root account initially has no
> password. Using a bash shell on Mac OS X 10.4.8, I've tried setting
> the password using this command:
>
> /usr/local/mysql/bin/mysqladmin -u root password mynewpassword
>
> Nothing happens after I press enter. However, when I try to login to
> mysql as the root user like this:
>
> /usr/local/mysql/bin/mysql -u root
>
> I get the following error message:
>
> ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using
> password: NO)
>
> I'm extremely new to all of this and installed MySQL to follow along
> with a book I'm reading. I'm trying to familarize myself with creating
> fast and efficient databases for my company.
>
> Any assistance would be greatly appreciated~
> Thank you~
>
> - a MySQL newbie


> From what I've read and understand, I need to set a password for the
> root user since, by default, the root account initially has no
> password.

No you don't. If you're just using it on your own local machine for
test purposes and no one else has netrowk access to it then you can
quie happily run with no PW.

Reply With Quote
  #3 (permalink)  
Old 02-19-2007
lee.hogan@gmail.com
 
Posts: n/a
Default Re: Mac OS X Newbie - Having difficulty setting a pw for root

But when I run mysql using this command:

/usr/local/mysql/bin/mysql

and then try creating a database:

mysql> create database mydatabase;

I get the following error msg:

ERROR 1044 (42000): Access denied for user ''@'localhost' to database
'mydatabase'

On Feb 19, 11:24 am, "Captain Paralytic" <paul_laut...@yahoo.com>
wrote:
> On 19 Feb, 16:13, lee.ho...@gmail.com wrote:
>
>
>
> > Hi,

>
> > *Please assist a unix/Mac OS X newbie ~
> > I just installed the MySQL 5.0.27 binary package for Mac OSX 10.4 and
> > am having a lot of difficulty with the post-installation processes.>From what I've read and understand, I need to set a password for the

>
> > root user since, by default, the root account initially has no
> > password. Using a bash shell on Mac OS X 10.4.8, I've tried setting
> > the password using this command:

>
> > /usr/local/mysql/bin/mysqladmin -u root password mynewpassword

>
> > Nothing happens after I press enter. However, when I try to login to
> > mysql as the root user like this:

>
> > /usr/local/mysql/bin/mysql -u root

>
> > I get the following error message:

>
> > ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using
> > password: NO)

>
> > I'm extremely new to all of this and installed MySQL to follow along
> > with a book I'm reading. I'm trying to familarize myself with creating
> > fast and efficient databases for my company.

>
> > Any assistance would be greatly appreciated~
> > Thank you~

>
> > - a MySQL newbie
> > From what I've read and understand, I need to set a password for the
> > root user since, by default, the root account initially has no
> > password.

>
> No you don't. If you're just using it on your own local machine for
> test purposes and no one else has netrowk access to it then you can
> quie happily run with no PW.



Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 06:28 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0