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.





I Changed Root Password But I Can Not Login With Changed Password


I changed the password of root with
update user set password=password('newpassword')

Then I exited. But when I want to login again , it cannot authenticate the root
I should tell you that a hacker had changed my root password before. Because it was not encrypted before.




View Complete Forum Thread with Replies

Related Forum Messages:
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 !
Mysql Appears To Have Changed The 'password' Function Hashing
I've been using Mysql for about 6 months but in fairly basic fashion. For a cms I have built, I have a users table, with userName and password fields. An admin can create new users, and the password is hashed using the PASSWORD() function.
SQL: "INSERT INTO users VALUES ('', '$userName', PASSWORD('$userPwd'))

Straight out of the book basically. Now the problem is that all this has been functioning fine on a couple of sites on external servers, plus a couple of local machines.

Until today, on my main dev machine - yesterday a user could log in, today they couldn't. As far as I can tell, nothing has changed. But when I look at the hashes in the database table, they are 41 chrs, and when I add a new user, the hash is 16 characters.

I know that at some stage the hash length was increased between mysql versions, but I have not updated the install (I run XAMPP for Windows 1.4.14, which appears to install php 5.0.4 and mysql 4.1.12)

Is there any other reason that the hash length could change to 16? I'd like to know why this happened so that I'm prepared if it happens on the server (where it is not so easy to hack in and add new users that can log in again)

View Replies !
Root Password :: Cannot Login To Mysql
i am new to mysql.i have installed mysql software which is provided with Linux CD .i need to provide password to root.i updated the user table to give password to the root.after restarting the mysqld service , i couldnt enter into mysql .one error message is displaying

ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

View Replies !
Random Password Vs. User Created Password For Site Login
Are there any security issues or other concerns that make one preferable? The client is pushing for user created passwords.

I'm mapping out the basic functionality and front-end for a MySQL/PHP back-end that will be completed by a third party. I'm a novice to MySQL but familiar with PHP and their interaction. Mainly looking for anything to support one method over the other.

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 !
Password Cannot Login
I had problems in one of my user's account, I used phpMyAdmin to edit this user and changed his password. Whatever I change his password, he just cannot login, even very simple password such as "1" can't do the work...
When I remove the password, he can login normally.
I have checked the password field on the mysql table which is long enough to hold the full encrypted password, although I noticed an asterisk * was put at the beginning of the encrypted password, which was not found on other accounts
I had a similar problem before and then I noticed my "username" and "password" field is too short to hold the whole username information, I fixed it by increasing the field length. I don't know why that happens... Migration from non-unicode to unicode database perhaps? Or being hacked in?

View Replies !
Password Login
i have a simple java code for a password login but it only allows one user name and password, do i need mysql to have more users and i also want a registration page.

View Replies !
Login Password Problem
I am running Mac OS X 10.4 (PPC) I have installed MySQL server and have the use account mysql but I have no idea of the password. When the install ran it did not give me the opportunity to set a password and I can not find anywhere that states a default password.

View Replies !
Login / Password Encryption
i am trying to create a very simple login system. all it does it input user data including a password and then when logging it it compares user name and password entered to find the user id (if exists) and then says you are logged in if a result was found. my problem is no results are ever found.

i have found that no matter what i do the password() function never returns the same value when im trying to select a user id with password=password('$inputedpassword') in the query to look up the user id.

so basically when i register the password is turned into a mess with password(), but wheni log in and use the same password() on it, it gives me something different.

BUT if i register under another user name and then use the same password, password() will give me the same mess (i checked this in the databse).

so i dont know why password() wont do the same thing when im using it in the query in login.php so that i can compare the passwords correctly. the only way i've been able to get this to login is to not encrypt anything. i have tried using md5 but that is giving me this same problem too. Code:

View Replies !
User Not Needing Password For Login?
I've seen this problem for a while now, but since at the time I only needed 1 MySQL user for development purposes it wasn't a problem. Now, it's problematic.

Btw, I have MySQL 5.0.22 installed.

I created a user using the following command (I've tried this way and using GRANT):

INSERT INTO user
VALUES('%','XXXX',PASSWORD('YYYYY'),
'Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y',
'Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y',
'','','','',0,0,0,0);

Now, I see that row in the mysql.user table. I see the encrypted password, BUT when I try to log in to mysql from the command prompt using the user that I just created... it NEVER needs the password (YYYYY) that I set it to in the INSERT.

>> mysql -uXXXX

^ That command takes me straight to the mysql command prompt. I am wanting the command to have to be 'mysql -uXXXX -p'... and then prompt for the password. Am I missing something?

View Replies !
Setting Password & Salt Then Cannot Login
I go into "phpmyadmin" mysql admin gui and set a passwd and salt for an account .....

i enter username as <usernametext> ... that is plaintext
i enter passwd as sha1(<passwdtext>) so it displays in table encrypted
i enter salt as <salttext> .... that is plaintext

now below is authen logic for login .....

View Replies !
Login :: File To Read For Username And Password
What file is read for username and password, i know in the wizard you set this up but what file is read with the userames and passwords?

Ok i was reading that i can access the database via web interface i tried http://localhost:3307 but nothing ....

View Replies !
Changed Characters
While using mysqldump to backup the databases on my server i noticed that all the the portuguese accented characters from my databases get screwed up and changed to wierd characters.
What's up?

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 !
Changed User Privileges And Now I Can't Log In
I read several web sites and O'Reilly's book on MySQL about securing the system tables.

I removed several users and, as advised inthe book and web sites, changed the user "root" to another name with another password.

I removed the site name as a host but kept the IP address.

Now when I use phpMySdmin to get back in, it let's me past the login popup BUT it gives me the message:

Error
MySQL said: Access denied for user: 'root@localhost' (Using password: YES)

The data in the database is not important but the database structure/definition is. I'd like to find a way to back up or dump that. Then I can reload MySQL and start over.

View Replies !
Get The Latest Changed Records
I hava a table with the following information

CREATE TABLE TEMP1 (REFID INT, REVISION INT, FIELDNAM VARCHAR(10), VALUE VARCHAR(10));
INSERT INTO TEMP1 VALUES(1001, 0, A, A2);
INSERT INTO TEMP1 VALUES(1001, 0, C, C2);
INSERT INTO TEMP1 VALUES(1001, 0, E, E2);
INSERT INTO TEMP1 VALUES(1002, 0, A, A3);
INSERT INTO TEMP1 VALUES(1002, 0, B, B2);
INSERT INTO TEMP1 VALUES(1002, 0, E, E3);
INSERT INTO TEMP1 VALUES(1001, 1, A, A4);
INSERT INTO TEMP1 VALUES(1001, 1, E, E4);

Here based on latest revision and refid I should get the fieldnam and value.
Expected output:
REFID FIELDNAM VALUE REVISION
1001 A A4 1
1001 E E4 1
1002 B B2 0
1001 C C2 0

View Replies !
User Information Changed
The other day someone changed every user's password on my site. Then they changed every user's email address to theirs - I assume the reason was that when the user used the password reset function, they would never see the information.

I'm trying to research what/where the vulnerability is in the script that I'm suing, but I don't really know where to start - not being a hacker, I don't even know the terms to search for here or on google.

Is this what is meant by mysql injection?

View Replies !
Float(m,n) Changed Between Mysql 4.0 And 5.0?
I have a float(11,10) field (default NULL) in one of my MyISAM tables. With MySQL 4.0.16, I can call an Update/Insert query with a value of , say 33.166668 to this field, and it updates correctly. When I retrieve that value again with a select statement, I get something like 33.1666668392 (10 digits after decimal). Which is correct. (The sql_mode server variable is set to 0)

With the same field in MySQL 5.0, my experience is different. With the server sql_mode set to one of the strict values( SQL_TRANS_STRICT), i get an error about out of range value for the float field. when I change the sql_mode to not have the SQL_TRANS_STRICT, I get the same error as a warning, 1264 "Out of range...". When I retrieve this value, it is set to 10.0000000000, which is wrong. But , when I change the field description to float(11,5) and do an update, the value is updated right, but I get an intermittent "No rows updated" error.

Could anybody please explain if the float definitions changed between versions? Does float(m,n) now mean that I can have only (m-n) digits before decimal point?

View Replies !
Rows Changed In Update SQL
Is there a way to find out how many rows got updated when i execute a update stmt.

I would like to get the updated rows count in SQL.

Let me know and Thanks in advance.

update stmt where clause;

now how can i get the count of rows that got updated.

View Replies !
How To Find Out Which Table Is Changed?
I dont have source code of my web application I installed. Its using mysql 5. when I create a new user account, I know "users" tables is changed, but there's also a couple other tables are modified.

Is there a way I can find out which table is changed?

View Replies !
History Of Changed Percents
I have a table with data like that:

percent date
50% 2007-05-01
30% 2007-05-02
30% 2007-05-03
50% 2007-05-04
50% 2007-05-05
20% 2007-05-06
20% 2007-05-07
50% 2007-05-08
70% 2007-05-09
70% 2007-05-10

The query has to return this rows:

50% 2007-05-01
30% 2007-05-02
50% 2007-05-04
20% 2007-05-06
50% 2007-05-08
70% 2007-05-09

View Replies !
Changed Datadir Now Mysql Won't Run
I changed the datadir using mysql administrator (so I could "see it") (I'm using version 5.0.x under OS X 10.4.5 and now mysql won't run and I don't know how to reset the datadir. I've reinstalled mysql and when I try to run it this is what I get:

iBook-G4:/usr/local/mysql michael$ sudo ./bin/mysqld_safe &
[16] 12878
iBook-G4:/usr/local/mysql michael$ Starting mysqld daemon with databases from /Users/michael/Sites
STOPPING server from pid file /Users/michael/Sites/iBook-G4.pid
060329 12:38:24 mysqld ended

View Replies !
All Swedish Characters Is Changed
I'm doing Kevin Yanks tutorial about how to manage users with session (with some small modifications).

But when the data is inserted into the table all Swedish characters is changed to some strange "¥" and "¶". Why is it so and how to fix it?

According to PHPAdmin the collation is either UTF-8 (db) or Latin1_swedish (table)?

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 !
How To Change The Root Password
How can I change root password for the mysql. Please provide me the exact steps.


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 !
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 !
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 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 !
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 !
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 !

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