Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    MYSQL


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Can Not Change Root Password?


When I typed in:

mysqladmin -uroot password NEW-PASS where NEW-PASS is my password of choice

no errors

in order to verify the password for root
I typed in
mysql -uroot -p
I was prompted for a password. If ignored password and press enter, no problem
if enter the NEW-PASS
It gave me errors like this:

ERROR 1045: access denied for user: 'root@127.0.0.1' (using password:YES)

It seems that I am not able to change password for root.
Anybody know how to alter root password?




View Complete Forum Thread with Replies

Related Forum Messages:
How To Change The Root Password
How can I change root password for the mysql. Please provide me the exact steps.


View Replies !
Change Root Password
I have MySQL installed on my MacBook Pro, which I'm using to construct web sites, though I'm still very new to it. I used a pre-made installer package, which regrettably I can't find at the moment.

Of late I wanted to get in some practice securing the thing, so my first order of business was to set a root password, since phpMyAdmin was warning me about that. Unfortunately my terminal window no longer recalls exactly what I did, but it resulted in the following error, though I thought I was following the instructions in the manual exactly for changing a password:

mycomputer:/usr/local/mysql-5.0.41-osx10.4-i686 william$ sudo mysql
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

So then I followed the instructions here: http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html to reset the password. After restarting the server, I now get this:

mycomputer:~ william$ sudo mysql -u root
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) .

View Replies !
How Do I Change The Root Password?
My MySQL program won't let me make new databases, and I suspect the reason is that I installed the thing using Terminal on Mac OSX, following various tutorials I found on the web. Not that the tuts were bad, but it's just I really had no idea what I was doing - just typing things in exactly as told and trying to guess when things weren't spelled out.

Anyway, at some point in the process, I was supposedly supposed to set the root password for MySQL, but it never came up. So i went looking for tutorials on how to set it (most said you had to set it directly after installation), and tried it, but the thing wouldn't let me set it. There was some kind of error that had to do with permissions, like I wasn't allowed.

Basically i think it wasn't letting me set the root password because I didn't know the root password. Which of course means I'm up the proverbial chocolate creek without a paddle. I tried to reinstall the thing, but the same issue came up. Wants the password that I never got the opportunity to set. I tried like five times, then just gave up and forgot about the whole thing and went to bed.

View Replies !
Change The Root User Password
I have just set a password for the root user for logging into MySQL which all works fine by typing: mysql -u root -p
A prompt appears asking me for my password which I enter and the usual welcome message appears.I initally set my root user password by typing at command line:
mysqladmin -u root password "new password"
("new password" being the password I chose)
This all worked ok. However I would like to know how to I change the password for the root user, and how would I also change the password for users that I set up (I assume it would be a similar way)?

I am currently running all on my local machine (hence no need to use "-h" anywhere in the login procedure) and running on windows 2000.

View Replies !
Root Password Change Does Not Work
I am facing a funny situation. All of a sudden my root password to the mysql server version 3.23.49 stopped working. I reset the password and tried logging in again, but what ever I do, I am unable to login as root. If I skip grant tables, I am able to, but not otherwise.

View Replies !
Can Not Change Password For Root-user
I can't seem to change the password for my root-user in MySQL.

When I go into mysql and type;

UPDATE mysql.user SET Password=PASSWORD('mypassword') WHERE User='root' AND Host='localhost';

I get the following error;

ERROR 1044: Access denied for user: '@localhost' to database 'mysql'

How can I change my root-password in the best way?

View Replies !
Change MySQL Root Password
My current user/pswd for my localhost is root/"" (no password). I'm following the directions in the mysql command line window (im on windows and installed mysql via wamp) and can't get to change the darn thing.

View Replies !
How To Change Root Password And Port
I have recently installed MySQL 3.23 on Windows 2000 Server. Can anyone tell me how do I change the root password and default port of MySQL?

View Replies !
Fail To Change Mysql Root Password
I followed;
http://www.cyberciti.biz/faq/mysql-change-root-password/

to change MySQL password.

$ mysqladmin -u root -p oldpassword newpassword
Enter password: (enter Mysqladmin Password here)
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: YES)'


As root
# mysqladmin -u root -p oldpassword newpassword
Enter password:
mysqladmin: Unknown command: 'MysqladminPassword'

I succeeded changing MySQL root password with following steps;

$ mysql -u root -p
Enter password: oldpassword
mysql> set password = password("newpassword");
Query OK, 0 rows affected (0.32 sec)
mysql> quit

Then I can login MySQL with newpassword.

I don't know why;

$ mysqladmin -u root -p oldpassword newpassword

did not work?

View Replies !
Restart MySQL Service After Root Password Change
I installed mySQL on a Win2k machine and tried to change the root password,
which didn't seem to work.

I changed it this way:

c:>mysql
mysql> use mysql
mysql> update user set password=PASSWORD('test') where user='root';
mysql> exit

and then tried to login this way:

c:>mysql -u root -p
password: test

which didn't work. Then, after many unsuccessful attempts, I restarted the
service and suddenly the password I had set worked. Then I realized that (at
least for the root password) I needed to restart the mySQL service everytime
I changed the root password, otherwise it would not become effective.

Is this by design??? Am I doing something wrong?

View Replies !
Root Denied Access, Cant Change To OLD_PASSWORD
I do what you see under, but get an error. I am trying to install wordpress localy on my macintosh, which should take 5 minutes, but it takes houres and days. This ' characters are to be in the command s? strange that errpr message does state that the user which is denied is nowhere, I am there is nothing between ' and '. The root uder IS activated on the system. I use OS X 10.4.1

gher is what i get.


mysql> SET PASSWORD FOR
-> 'root'@'localhost'=OLD_PASSWORD('thepassword');
ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'mysql'
mysql>

View Replies !
Change Password
I am borderline about to throw my computer out the window....I have installed, removed, installed again, removed again mysql 5.0 on my brand new Fedora 5 core with little success. I am logged in as root, and can get mysqld to start, however when I attempt to change my password by the following: mysql -u root I get the following message:

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

View Replies !
How To Change Db Name And Db Password?
i changed my hosting'soffers(i was on free hosting and i paid to clean up the advetises) and i received by email my new db name and password! i don't know how to chage it !

View Replies !
Change Password Using .bat
First of all I am sorry if I am posting in a wrong section.

Following are the steps to change MySQL root password using command prompt

HTML Code:
1) cd C:mysqlin
2) mysql -u root -p mysql -h 127.0.0.1
3) (when prompting for password) we enter password
4) set password = password('new password')
I was wondering if these steps can be done using a .bat file?

If yes how?

I have tried creating a .bat file with the above steps but it stucks at line when it prompts for the password. can I automate it as well?

View Replies !
Delete /Change Localhost For Root In User Table
I have updated my Host-Information for root in the users table - and guess what happened - I can't login with root anymore.

What is more - I took as update address something like http://serverbla.com. So guess what, I can't login because of the protocol information.

Since I have a webshop installed on the machine I would like to reset only this information. Is there any chance to do that without crashing the webshop?

View Replies !
Set Root Password
I can't seem to set the password for root. What is easiest way to do such?

View Replies !
My Root Password
I have given root a password in MySQL, but now phpMyAdmin says "access denied".
I've put the following line in config.sample.inc.php:

$cfg['Servers'][$i]['password'] = 'password_goes_here';

but it doesn't seem to make any difference.
How do I get phpMyAdmin to recognise my root password?

View Replies !
Old 'root' Password
I'm trying to install MySQL server 5.1 on Windows and I'm getting error # 2003. It seems that I have a previous installation (which I must have forgotten) which I uninstalled but the old root password is still in the data dir which was not removed in the uninstall and I require it to create a new one. How do I -

a) remove the old one or
b) discover the old password so I can reuse it ??

View Replies !
Can't Set Root Password
Not only is this my first atmysqlt at installing MySQL, I am also a Linux newbie which compounds my problem. Please be kind.

When the issue cropped up in a fresh install of openSuSE, I tried it on CentOS and the same thing happened. When I issue the following, as Linux root:

mysqladmin -u root password <new-root-password>

I get the following:

mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'

Something is not allowing a connection to the server. I have made sure the entiries in /etc/hosts are correct. I even added a search line in /etc/resolv.conf thinking some persnickitiness with the hostname might be the cause. It appears I was wrong on both accounts.

Then is suspected permissions as the devil. Wrong again. I went so far as to chmod 777 every file associated with mysql to no avail.

The line "(using password: NO)" in the error message also has me scratching my head.

I am pretty sure it is something very simple that I am overlooking. Or, at least, I hope so. Anyone have any ideas that will maybe get this newbie's jitney back on the highway?

View Replies !
Don't Know My Root Password
I had just installed MySQL 5.1 on my system and was in the middle of configuring it when my system had just randomly crashed. Now I wasn't able to set a root password and when I try to configure it now, it says there is a password but I don't know what it is. Is there a way to completely uninstall MySQL from my system so that it no longer has a password or anything without completely reformatting my computer? I've tried the method to resetting the password here..

http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html

View Replies !
Password Except Root
I know that there is default user and password in MySql as root and admin, but i want to create my own user and password like xxxx as a user name and yyy as a password so please tell me the procedure to create the user.

View Replies !
Change User Password
i am using mysql version 4.0.27-standard with php myadmin. i do not want to change the root password. in mysql section of my cpanel there is no link to modify or change mysql user, only delete or create it

View Replies !
Too Few Arguments To Change Password
I am trying to set my password for mysql for the first time and when i type in

mysqladmin -u root password

the returning message is:

mysqladmin: Too few arguments to change password

View Replies !
SQL Command To Change Password ???
Is there SQL Command to change Password MySQL.

View Replies !
User Cant Change Own Password
to change a password a user would need update privileges
on an entire column, so she could change anyones password. [on a particular table]
Am I right?
so mySQL users cant change their own passwords, they have to plead with the admin...

View Replies !
How Do I Change A Database Password?
I have created a MySQL database on my local server and set up my php pages etc. using phpMyadmin and Dreamweaver. When I tried to set up a database on my server I discovered a small problem. I had used a 15 character password and my server limits the password to 12 characters.

My simple question is can I change the password of the database and if so how. I am very new to using these toold so please make your answer clear and simple so that I can follow. I have instaled the MySQL GUI Tools as well but can't figure out how to change a password.

View Replies !
Password :: Change Password
I have trixbox 1.2.3 running and in freePBX it told me I need to change the password in mysql. I went into mysqladmin and privileges. I updated the passwords for a2billinguser and root.

Now I am denied from access to mysql and all services that use mysql don't work. How do I restore the default that trixbox used. I have a very large major system here and cannot just blow it away.

View Replies !
Root Password / Startup
I'm using mysql-server-3.23.58-4 on a Linux (Fedora 1) machine,
and I'm new to databases/MySQL.

After reading the security section of the manual from
http://dev.mysql.com, I added passwords for the 'root' accounts.

However, now the startup script (/etc/rc.d/init.d/mysqld) fails.

I tried adding:

[mysql.server]
password=xxx

into /etc/my.cnf

How do I set the password for the startup script ?

View Replies !
Forget Root Password
i've installed OCS Inventory NG for inventory and it has installed
Mysql ver:

mysql Ver 14.12 Distrib 5.0.18, for Win32

now i have to make a dump for save database but don't forget the root
password.

View Replies !
Resetting The Root Password
Having a browse through Paul Dubois's book, MySQL (ISBN 0-7357-1212-3), I
came across a section in which he describes how to reset the root password:

1. Shutdown the server by issuing a KILL under Unix or stopping the system
service under Windows.

2. Restart the server with the --skip-grant-tables option which allows you
to connect with no password and all privileges.

3. Reset the root password.

Given that the person first has to have operating system root or
administrator access to shutdown the server, wouldn't this qualify as a
security hole in cases where the OS root doesn't own the database, for
example, on shared machines.

View Replies !
Cannot Connect With Root Password
I've set my root password (or at least I think I did!), but am unable to connect to localhost with it. Now when I try to connect using root and that password - i receive a 'command not found' error.I'm totally perplexed. This is a new installation and I 'thought' I followed the instructions - but apparently not.
Can I remove this installation (and how would I do that?) and try to install again?

View Replies !
Reset Root Password
I have searched on several forums on how to reset the root password for MySQL. Keep in mind, I am NOT a SQL programmer at all. I have been taking a stab at getting a phpbb up and running. I did all of this on a desktop machine running apache, php, phpbb, & mysql. Now that the site is up and running, I want to move my database over to my server using phpadmin, but it requires that I know the root password. I typically use 2 different passwords, both of which I tried and can't get root access. I don't understand what happened. Can someone let me know what the exact commands are to reset the password? Yes I am a dummy when it comes to this

View Replies !
PhpMyAdmin :: Root Password
I have given root a password in MySQL, but now phpMyAdmin says "access denied".
I've put the following line in config.sample.inc.php:

Code:

$cfg['Servers'][$i]['password'] = 'password_goes_here';

but it doesn't seem to make any difference.

How do I get phpMyAdmin to recognise my root password?

View Replies !
Retrieve Root Password
I have a dedicated server with 1&1 (really bad tech support) and they don't seem to want to give me the root user password. The server is running Fedora Core 2 - is there anyway I can retrieve the root password? I want to be able to set CRON jobs to do MySQL dumps for backups every now and then.

View Replies !
Connecting :: Root Password?
I am unable to connect. I think my issue is the login details to mySQL - my php code is fine. I've done my installations recently and I've never needed to use logins to access mysql. are there any?
i think i read somewhere that the password for the root login in mySQL is blank so I've left it like that in my script.

$conn = mysql_connect("localhost", "root", "")
or die(mysql_error());
mysql_select_db(mysql, $conn) or die(mysql_error());

View Replies !
Resetting Root Password
I have set up mysql 5.0 (or whatever the latest version is), but for some reason it has lost what i set my root password is and i am tearing my hair out tryin to get back into the database.

I have attempted the commands it tells you to do on the mysql official documentation and it jus comes back with an invalid command and I have also attempted to skip grant tables, which allows me to change the password but as soon as i start the service running again it jus goes back to way it was and doesn't let me in :(.

And also reinstalled it like a billion times to discover it keeps the old root setup.

View Replies !
Root Password Lost
I am an Oracle DBA and new to MySQL. I have to do some urgent work on MySQL but problem is that I have been assigned a user/password which does not have access to grants tables (mysql schema). My user has access to only one database, and is allowed to connect only from the same machine which hosts the database (which is on linux).

So, I am not able to connect to database from my Windows machine having GUI database client tools. The actual DBA of the system who had root password has gone and now nobody knows the mysql's root user password. I wanted my user to be able to connect remotely which requires changes in grant tables, but only root user can grant this priviledge.

Can someone please help me? how can i get the priviledges that only root can grant? is there a way to know root password or, to reset root's password? plz help.

View Replies !
Forgot My Root Password
I installed MYSQL 5.1.30 on vista home prem SP1 as a service several weeks ago and I've forgotten the root password.

- I've uninstalled MYSQL using Control Panel uninstall
- I reinstall with setup.exe then during config with wizard I get an error that the root password doesn't match. The details tell me that if I am reinstalling, I need to know the root password.

How can I completely remove MYSQL info and start fresh?

View Replies !
Resetting The Root Password On OS X
When I try to open MySQL, I get this error message:

Access denied for user 'root'@'localhost' (using password: YES)

According to the manual on this site, that means I have to re-set the root password. Is the procedure for doing this is OS X Terminal any different from the generic Unix one that the manual gives?

View Replies !
Root And Password Info
where MySQL saves the root and its password info? .. I need to automatically retrieve it from my app.. is it possible?

View Replies !
Reset The Root Password
we got mysql running for a while with different users and our root user was never really used but now we need it to set new permissions and tadam we can't find the password.
so how do we go aobut resetting this? we have full access to everything it runs on Windows 2k3 standard.

View Replies !
Reset Root Password Or?
I have inherited the job of updating our company's method of generating worksheets for employees. it uses .asp pages that pulls info from mysql to fill the pages. The problem is twofold, first i'm stupid on mysql and asp, but learning.

second nobody knows the password for the mysql service and to make matters worse the server is continually used and i will have to stop ther service for some time to update the database. i guess first i need to be able to get in to mysql so if anybody can let me know in plain english what to do to reset or find the password that would be great, i tried the instructions in the manual with no results.

of course it doesnt help with 60 people complaining that the server is down while i am trying to do it either. The mysql version is 4.0.21 if that matters. I installed mysqladmin and cant log in as root without password, i can log in as mysql without passowrd but not enough privelages.

View Replies !
Reset Root Password (4.0.20)
I am running MySQL version 4.0.20 and I did the misstake to do a privileges settings change using MyPHPadmin.

So, now I want to reset the master root password and then be able to login to my myPHPadmin site and reset all user privileges, fast and easy.

I do the following to reset my root password:

"mysqld_safe --skip-grant-tables --user=root &"

Then I login as root with "mysql -u root"

Once inside MySQL I write: "UPDATE mysql.user SET Password=PASSWORD('my_chosen_passwd') WHERE User='root';

I finish up with "FLUSH PRIVILEGES;"

and then "/quit" to quit MySQL.


Then I try to re-login with: "mysql -u root -p"

I enter my password and get the following;
"ERROR 1045: Access denied for user: 'root@localhost' (Using password: YES)" .

View Replies !
Reset Root Password Mac OSX 10.3
i can't find the .pid file described in the password reset instructions (or for that matter really understand the instructions)..

View Replies !
Setting Root Password
I am using MySQL 4.1 on Win XP.I forgot my root password and I am trying to reset it. I am using the SQLyog GUI to manipulate my DB.I have a guest password stored in SQLyog and can access all of my databases.But I can't use SQLyog to change the password b/c it uses the new password alogorithm which is hashed to 32 characters opposed to 16 in the old alogorithm.I was wondering a way to reset my root password. I only have minimal privileges on this account such as SELECT.

Just in case anyone missed it, I can't log into my MySQL command line client since I don't know my root password.I would normally use OLD_PASSWORD('password') from there.

View Replies !
MySQL Root Password
I am having some trouble setting up the mySQL root password. It's probably right under my nose, but I can't seem to find where to edit it.

View Replies !
Recovering Root Password
I am having MySQL 4.1 in Windows 2003 Server and I had forgotten my root password and I can not remember it.

View Replies !
Changed Root Password, Now I Can't Do Anything
I am following the MySQL by Michael Kofler and looking at securing root access as currently it has no password.

I've logged into the MySQL consol and changed password using :

mysqladmin -u root -h localhost password XXX

However, i now can't do anything in in mysql terminal it comes back "access denied for user 'root'@'localhost' (using password :NO)

View Replies !
Password :: How To Get Root Password
Is there anyway of knowing the root password of a MySQL database?? I know we can change the root password to a new one, but I want the root password of an existing database. Is this possible?

View Replies !
How To Create A Change Password Form In Php?
i would like to create a change password form in php using data from tables of mysql .. they have "ID" and "Password".. I want the user to enter his current password,

his new password,
his confirmation for his new password.

then I want to compare between them using double hashing .. I don't know what is that? and how can I compare between these two? I always get a message that the old password is invalid ..

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved