So i've found a few people on here that had the same issue, but I have not been able to resolve mine.
I downloaded XAMPP and was able to use phpmyadmin without a problem at first. I then tried setting a password for the root user, and then started getting this error message. When I try and log in to MYSQL from the command line, I get the same error unless I login with mysql -u root
At first I thought the issue was a password, but I got rid of the original password and I still get the error. I've managed to get rid of all other mysql users, and when I run SHOW GRANTS, it shows that the root user has all privileges, so I'm unsure why I can't log in to MYSQL normally, or phpmyadmin.
You should edit the C Drive /(Your Local Server Folder, WAMP/MAMP/XAMPP)/ APPS / PHPMYADMIN /config.inc.php file, find the line of code $cfg['Servers'][$i]['password'] =' ', and type the password that you have already set for the root, this should solve your problem.
Related
I just recently installed MySQL (Ver 8.0.32) and phpMyAdmin on my CentOS 7 machine, however, every time I try to login to phpMyAdmin it says I cannot login. The MySQL database is up and running as I am able to log into it via the command line using root as the username and the password I had set on install.
I have tried creating a new user with full access and privileges (which I can log into via the command line as well) but phpMyAdmin returns the same "Cannot log into the MySQL server" error even though everything is correct.
I have tried updating the MySQL port, I have tinkered with /etc/phpMyAdmin/config.inc.php to use the proper host of the machine, the port, socket, connect_type, auth_type, user, password, etc. I have tried every solution that was recommended online and yet nothing. I cannot login to phpMyAdmin and I am unsure as to why (I can't find any logs regarding the issue either).
Can anyone help? I am so annoyed and I do not know what else to do.
I want to install phpmyadmin on Ubuntu 20.04. I take the password 2 times (first I tryed root password but after I tryed leave the field empty or use other password). Any time I error like screen of my error. I found this tutorial.
Author of this article wrote:
From the prompt, run the following command to disable the Validate
Password component. Note that this won’t actually uninstall it, but
just stop the component from being loaded on your MySQL server:
But this component is disable and yet I still have this error. How can I solve my problem
The error message you posted is different from the Validate Password one in the tutorial. I suggest re-enabling the option that you disabled.
Your error is showing that you (or someone) has changed the password of the MySQL user that Ubuntu (and Debian) uses for administrative purposes (debian-sys-maint). Details of that user are documented in README.Debian and the password is stored on disk in /etc/mysql/debian.cnf.
To resolve this, you can simply set the password to a known value and edit the configuration file to tell your system the new password.
Presumably, you're using MySQL 8.0.20, in which case you would connect through the command line client (mysql -u root -p) and run a command like this: ALTER USER 'debian-sys-maint'#'localhost' IDENTIFIED BY 'aReallyComplexPassword';.
On the chance that you're using MariaDB, the command is SET PASSWORD FOR 'root'#'localhost' = PASSWORD('aReallyComplexPassword');.
You won't need the password again after you put it in /etc/mysql/debian.cnf). Note that you'll need to edit the debian.cnf file as root or sudo.
I've just recently installed my Macports MAMP environment and I thought I'd followed the directions, but couldn't get MySQL to run. After much wrangling and testing, I've stumbled upon what the problem is, but I have no idea how to solve it.
I was getting the classic, irritating "Can't connect to local MySQL server through socket" error message. Checking and rechecking, the socket file was exactly where MySQL expected it to be and was set to the right permissions. Then, while trying to troubleshoot, I attempted to log in while I was still in superuser and boom! I was in!!
Leave superuser and it no longer works. Doh!
So my question is: how might I correct this problem and get it to run as a regular user? The trouble with Google searching a topic like this is that the two user systems - MySQL and Mac - are getting confused and I'm not finding the solution I need.
Thanks very much!
A brief example of the problem:
`tomb# mysql -u root -p thisismypassword
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/opt/local/var/run/mysql55/mysqld.sock' (13)
tomb#sudo su
Password:
sh-3.2#mysql -u root -p thisismypassword
mysql >`
I'm battling with a strange issue here.
I am setting up an Amazon EC2 server, installed with Ubuntu Server 12 LTS, to serve our web app.
I installed mysql, and then had some issues with being unable to access with the root password I had set.
Suspecting a conflict with a possible default install (I thought I had checked), I completely removed mysql including the user.
Starting fresh, I set a root password which then worked. I set up phpMyAdmin, got that working, but then when trying to set a password for a user following an import,
I got "could not find row" error.
Upon some searching I found that 'FLUSH PRIVILEGES;' could help remedy the problem. So I went back into the server, logged into mysql as root, and performed the flush command.
I was then logged out of phpMyAdmin with an access denied error, and since then have been unable to log back into mysql on the server.
The full error is:
ERROR 1045 (28000): Access denied for user 'root'#'localhost' (using password: YES)
I am quite confused, already spent a lot of time trying to find out what the problem could be. Any help would be much appreciated. Thanks in advance.
Ha! Use --databases and include only your DB:
http://dev.mysql.com/doc/refman/5.5/en/mysqldump-copying-to-other-server.html
This was caused by my data import being from a full mysqldump, which I did now know would contain all user tables including root, which therefore overwrote my root user.
I guess there is a way to prevent either the export or import of the mysql table somewhere.
Learn something new everyday, as they say..
I have a VPS running CentOS and have apache, php, mysql all installed. I was following a tutorial for installation and apparently did something wrong when setting up mysql (I believe something with setting user and password). Now whenever I try to get to the MySQL command line interface I receive this error.
ERROR 1045 (28000): Access denied for user 'root'#'localhost' (using password: YES)
I looked this up and got a few suggestions to try to bypass so I can reset the passwords. I've tried:
/etc/init.d/mysqld --skip-grant-tables
Which came up with the same error. I tried reinstalling by first removing mysql and then installing it again. Same Error appears. What else can I do?
(if U don't have anything in DB, remove mysqlDB - not installation, but DB files in /var/lib/mysql/ - backup it first!)
start this: shell# mysql_secure_installation
it will ask U to:
Set a root password. If you already have it
you’ll need to enter it for the remaining steps.
Remove anonymous users
Disable non-local root access
Remove the test database and access rules related to it
Reload privilege tables so the above changes are in effect
BR