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.
Related
trying to install mysql 5.7 i get the prompt for a root password.
after pressing enter i assume that the password for the root user will just be blank (null?)
if i try to connect to the server with mysql -u root the connection can't be established due to wrong authentication. if i add the -p parameter to get the prompt and leaving that empty will also result in bad authentication.
i'm not sure if can i completely remove the root password for mysql.
What system user are you connecting from ?
If you don't provide a root password during installation, it does not just set an empty password, it refuses any password, and only the system root user can connect, just by typing :
mysql
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.
I get the error #1045 - Access denied for user 'root'#'localhost' (using password: NO)
after I accidentaly changed the password in phpmyadmin for root and 127.0.0.1 . the problem is i cannot change common.lib.php. I want to revert these changes in mysql somehow... Doe to the security of the server i cannot change much
I hope you can access the mysql server administration. As I know the root is the main user in MySQL it'll be a problem if you cannot access it. If you have a user with the same level, try to change the password there if possible.
Here's the step on how to reset the root password in MySQL
How to Reset the Root Password
I was also dependent in phpmyadmin before until I know sqlyog and MySQL Query Browser and WorkBench. Have a look on this as an alternative on phpmyadmin.
Download MySQL Workbench
SQLyog free download
It's been a while since I've used phpMyAdmin, but if I'm not mistaken, it stores it's passwords in the mysql database it self. So, if you are able to get access to the command-line of the server, you are able to change the password using simple SQL statements.
Go to /etc/phpmyadmin folder.
Open config-db.php
Here you will find your default username and password