Jump to content

How do I set up password on MySQL


Mackey18

Recommended Posts

You have to include the full path when executables are not on your current path. mysqladmin is one such executable because it is usually setup to be used by root only.

 

I believe the path your looking for is...

 

/usr/local/mysql/bin/mysqladmin

Link to comment
Share on other sites

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

 

 

 

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 2 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.