Jump to content

How do I set up password on MySQL


Mackey18

Recommended Posts

-bash: mysqladmin: command not found

 

I thought you had to include the location of the file,

 

/usr/local/bin/mysqladmin password NEWPASSWORD

 

but that didn't work either. I get this message : -bash: /usr/local/bin/mysqladmin: No such file or directory

 

cd /usr/local/bin/

sudo mysqladmin password NEWPASSWORD

 

i got this:

 

cd: /usr/local/bin: No such file or directory

 

mysql> password = password(******)

 

I got this:

 

ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'password = password(******)' at line 1

 

 

 

what one was not found ?

try su instead of sudo

 

shame i don't have a Mac at home, i could of jumped on one at work!

 

if the access problem is due to it being inuse then try this

/etc/init.d/mysql stop
cd /usr/local/mysql/bin/
safe_mysqld --skip-grant-tables
mysqladmin -u root password 'newpassword'
/etc/init.d/mysql restart

 

or

/etc/init.d/mysql stop
cd /usr/local/mysql/bin/
safe_mysqld --skip-grant-tables
mysql -u root mysql
UPDATE user SET Password=PASSWORD('newpassword') WHERE User='root';

Exit with ctrl+c or ctrl+z or ctrl+x (i really can't remember)

/etc/init.d/mysql restart

try it now

 

Again not working, i'll break it down for you:

 

/etc/init.d/mysql stop

gives: -bash: /etc/init.d/mysql: No such file or directory

 

safe_mysqld --skip-grant-tables

gives: -bash: safe_mysqld: command not found

 

the others show no errors

 

Are there any programs which I can buy/download that help me make a database for the website which I asked about in another thread?

Again another error, it doesn't matter I don't have to use a password. If you can remember the post about my website MadTechie, would you think there is any way to accomplish what a wanted without using MySQL?

 

Thanks for your help, you've been a star!

1. click Privileges

2. click Add a new User

3.1.User name = test

3.2 Host: LocalHost

3.3 Password = pass

3.4 Retype = pass

4. Global privileges tick all in Data & Structure

5. click go

 

Now click the Databases tab

Create new database

enter name (ie testing) click create

Then

Create new table on database testing

.. i think the tutorial plays form here

 

Look at the picture i sent, there is no button for privileges!

 

EDIT: I haven't downloaded PHPmyAdmin to my Mac yet, at the moment it's just a webpage which I took the screenshot of.

 

EDIT: An account came with my domain name when I bought it, the screenshot is the page after I logged in.

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.