DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
After installing mysql I used pa$$word as the password, it will not let me log on to mysql. The mysql server runs fine, I can stop and start the daemon. I can't log into it.
I've tried changing it and I just keep getting wrong password errors, no matter what I do.
I don't really want to have to reinstall etch (again).
If you can start and stop the server you can try to use the debian-sys-maint for something:
# cat /etc/mysql/debian.cnf
Maybe you can try mysql_fix_privilege_tables, not sure, but you can try!
[]'s, FMC!
Hey thanks but not sure what to do with above?
I managed to convert the password recovery tut to debian by myself (pat pat on the back) but still getting bugger off with your password matey ie
Code:
web:/# /etc/init.d/mysql stop
Stopping MySQL database server: mysqld.
[1]+ Done /etc/init.d/mysql start safe_mysqld --user=mysql --socket=/var/lib/mysql/mysql.sock --pid-file=/var/run/mysqld/mysqld.pid --datadir=/var/lib/mysql--skip-grant-tables --skip-networking
web:/# /etc/init.d/mysql start safe_mysqld --user=mysql --socket=/var/lib/mysql/mysql.sock --pid-file=/var/run/mysqld/mysqld.pid --datadir=/var/lib/mysql --skip-grant-tables --skip-networking &
[1] 3873
web:/# Starting MySQL database server: mysqld.
Checking for corrupt, not cleanly closed and upgrade needing tables..
web:/# mysqladmin -u root flush-privileges password "newpassword" mysqladmin: connect to server at 'localhost' failed
come on there must be some one out there who can give me a some clearer leads than this?
I thought this open source community was mean't to be helpful?
Every forum I have sort help from I get nothing but ideas with no direction. Not impressed!!
I can't even seem to get a straight out "you are a stupid newbie, reinstall from start and try again". At least that would be some more insightful direction than I have had.
:d
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
web:/# mysqladmin -u root flush-privileges password "newpassword"
mysqladmin: connect to server at 'localhost' failed
I just keep getting rejected, just like my love life. ;D at least there's some humour left in me.
Time for a reinvention or reinstall again I guess.
Seems sad to reinstall etch to fix mysql but I'm too stupid to find out how not to.
;d
the_Case, I just ran the /usr/bin/mysql_install_db and I'm having the same problems. The output from that command tells you to run /usr/bin/mysqladmin -u root password "password" and /usr/bin/msqladmin -u root -h host-name password "password". The first command seemed to work. The second one failed. Now I can't do anything with mysql or mysqladmin. I always get the same errors you do.
FMC, how do you specify a password? I've tried everything I can think of to supply the password I set with the /usr/bin/mysqladmin -u root password "password" command, and nothing works.
I think I'm going to try to reset the root password and start all over if I can't managed to get past this.
thanks for you input!!! Just my impatience with my lack of knowledge, nothing to do with the community. LOL.
Z038
this is something I tried also. mysqladmin -u root -p
I just want to change my password so I can get access to mysql but it won't let me. :d
So this is my problem.
Password doesn't work. Old password, new password, resetting password. It doesn't work.
I've tried a few different methods including
killing process with cat and creating an init file with new password inside and restarting in safe mode, still to no avail.
How do I remove mysql completely and reinstall it? I really think this is the path forward for me.
I know how to apt-get remove mysql-server (which I've tried) but it doesn't remove everything because when I go to enter
new password, I get request to enter old password and then told password is incorrect.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.