Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
You didn't pass a password to it. If you don't know your password, restart mysql with the --skip-grant-tables switch, reset or create new password for root, then restart again without the --skip-grant-tables
If you do know the old password, try running:
mysql -uroot -p mysql
And let it prompt for the password, or pass it with --password=<password>
You didn't pass a password to it. If you don't know your password, restart mysql with the --skip-grant-tables switch, reset or create new password for root, then restart again without the --skip-grant-tables
Thanks for your advice.
Tried some suggesions found on googling w/o result.
Performed test;
# /etc/init.d/mysql stop
Code:
* Stopping MySQL database server mysqld [ OK ]
# /etc/init.d/mysql start --skip-grant-tables
Code:
* Starting MySQL database server mysqld [ OK ]
* Checking for corrupt, not cleanly closed and upgrade needing tables.
# mysql -u root password myrootpassword
Code:
mysql Ver 14.12 Distrib 5.0.38, for pc-linux-gnu (x86_64) using readline 5.2
Copyright (C) 2002 MySQL AB
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL license
Usage: mysql [OPTIONS] [database]
-?, --help Display this help and exit.
......
......
column-names TRUE
sigint-ignore FALSE
port 3306
prompt mysql>
quick FALSE
raw FALSE
reconnect TRUE
socket /var/run/mysqld/mysqld.sock
ssl FALSE
ssl-ca (No default value)
ssl-capath (No default value)
ssl-cert (No default value)
ssl-cipher (No default value)
ssl-key (No default value)
ssl-verify-server-cert FALSE
table FALSE
debug-info FALSE
user root
safe-updates FALSE
i-am-a-dummy FALSE
connect_timeout 0
max_allowed_packet 16777216
net_buffer_length 16384
select_limit 1000
max_join_size 1000000
secure-auth FALSE
show-warnings FALSE
# mysql -u root -p
Code:
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
Still failed.
Eversince I accidentally removed /home/satimis previously some problem popup. Whether I have to remove mysql-server and reinstall it? Would it affect other packages. The mail server is now running w/o problem including SquirrelMail, the webmail.
Yeah, I'm kind of confused on why you would try passing a password as:
mysql -u root password mypassword
Did you not read my instructions:
mysql -u root -p mysql --password=password
It kind of needs the -- and = when specifying the password.
You can also do:
mysql -uroot -p<password> without a space and it will work but I don't recommend this. Anyone that gains access to your server can see your mysql password in your history.
Yeah, I'm kind of confused on why you would try passing a password as:
mysql -u root password mypassword
Did you not read my instructions:
mysql -u root -p mysql --password=password
It kind of needs the -- and = when specifying the password.
You can also do:
mysql -uroot -p<password> without a space and it will work but I don't recommend this. Anyone that gains access to your server can see your mysql password in your history.
Hi trickykid,
Sorry I haven't finished trying your second suggestion. On running;
Code:
# mysql -u root -p mysql
It popup for password. The old password can't work. I don't why. So I stopped there.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.