Try it without the space between the -p and the password.
The command should be
mysql5 -u root -pmyRootPassword
On 8 April 2012 17:12, Michael Parchet <mparchet@stripped> wrote:
> Hello,
>
> I have install the mysql5 @5.1.60_0 and the mysql5 @5.1.60_0 serve
> package via macport.
>
> I used the mysql_secure_installation5 with my root password and now there
> are only the root user can access mysql.
>
> But if I run mysql5 I get an error.
>
> Here is my console output.
>
> mysql5 -u root -p myRootPassword.
> BatAdminEnter password:
> ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using
> password: YES)
>
> Do you know this error ?
>
> Can you help me please ?
>
> Tanks
>
> Best regards
>
> mparchet
>
> --
> MySQL Community Mailing List
> For list archives:
> http://lists.mysql.com/**community<http://lists.mysql.com/community>
> To unsubscribe:
> http://lists.mysql.com/**community<http://lists.mysql.com/community>
>
>