I have been trying to install mysql and there was no problem until it asked for password and I wrote and it said it was right until it asked for password again for connection and it said that it was wrong i tried to uninstall and install again but it keep asking for my password.
as root you can change your password by cmd like
ALTER USER 'yourname'#'%' IDENTIFIED BY 'MyNewPass';
you can access your db from anywhere
Related
Just had helpdesk install mySQL Workbench but when trying to connect to a new connection i am asked for a root password. I try to connect without putting in the password but am thrown an error.
After research i found that whoever installs your mySQL will set up the root password. i eventually got the password from help desk
Well, actually it is mariadb, but to start its client, I need to enter "mysql" in command line.
Anyway, after entering
mysql --user=root
Note, that at this time "root" doesn't have a password, so I successfully login and then:
SET PASSWORD FOR 'root'#'localhost' = PASSWORD('my_pass');
And it works, from now on I have to use "my_pass" to login.
But then I do:
sudo service mysql restart
And from now on, root's password is again reseted to "no password at all".
And again, to login I can't give any password.
Googling this doesn't help, because most articles are about "how to reset user password" :)
Well, I managed to solve my problem - if anybody's interested you have to do:
flush privileges
After changing passwords.
I've been trying to change my root password on one of my mySQL databases on WAMP server. However, when I submit my password MySQL says I have a fatal javascript error--token mismatch. Does anybody know how to fix this? I've already tried re-installing WAMP.
Thanks
if you can acces database via shell. you can easily change your password
mysql -u root
UPDATE mysql.user SET Password=PASSWORD('password') WHERE User='root';
I tried following this post:
How can I rework my MySQL password so that I can rake db: create on rails?
As it most closely addresses my problem except the answers aren't specific/detailed enough i.e. I am a huge newbie and don't know what commands to run.
This is my problem:
:~/myapp$ rake db:create
Access denied for user 'todallyrad'#'localhost' (using password: YES)Please provide the root password for your mysql installation.
I don't know the root password or how to change it. I got started trying to follow this:
https://gorails.com/setup/ubuntu/14.04
But got stuck at the very end. I tried doing the suggested change of the database.yml file using VIM but that didn't work either.
The default root password for MySQL is no password. Either edit your database.yml file, enter root as user, leave password blank. Or use mysql command line console to create a user with password. And add a root password.
You may change your root password as per below:
STOP mysql service
sudo /etc/init.d/mysql stop
sudo mysqld --skip-grant-tables &
Login into mysql DB using root user
mysql -u root mysql
Set password for your root user
UPDATE user SET Password=PASSWORD('YOURPASSWORD') WHERE User='root'; FLUSH PRIVILEGES; exit;
use root as username and leave password blank for the first time and then when you are log in, you can add account for database connection.
Hi I will repair my tables in ssh but it want mysql admin password.
Admin password different then my plesk admin or root password.
I did't change admin mysql password.
/usr/local/psa/bin/admin --show-password this password isn't work
I want to get password or change but I don't know it.
I'm using plesk if I change password direct at mysql.users probably I cant login plesk.Is it wrong?
Please help me how can get or change this password?
http://i.stack.imgur.com/xz6Mr.png
You can use string stored in /etc/psa/.psa.shadow as mysql user admin password.
For example, to upgrade mysql tables try this command:
# mysql_upgrade -uadmin -p`cat /etc/psa/.psa.shadow`
I'm using plesk if I change password direct at mysql.users probably I cant login plesk.
It's true.