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.
After this I was not able to restart mysql. I found solution (on internet) :
Code:
vi /etc/my.cnf
skip-grant-tables
innodb_data_file_path = ibdata1:10M:autoextend
But I am not able to log in as root user :
Code:
mysql -u root -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
Doing mysql_upgrade to try resolve this gives :
Code:
mysql_upgrade
mysql_upgrade: Got error: 1045: Access denied for user 'root'@'localhost' (using password: NO) while connecting to the MySQL server
Upgrade process encountered error and will not continue.
I also read on the internet about "grep 'temporary password' /var/log/mysqld.log", but this gives no result for me.
The following also fails :
Code:
mysql_secure_installation
Securing the MySQL server deployment.
Enter password for user root:
Error: Access denied for user 'root'@'localhost' (using password: YES)
So, I am stuck.
Last edited by jonaskellens; 06-26-2019 at 07:33 AM.
Reverting to 5.1 is failing with major errors in /var/log/mysqld.log.
I did not check that document. It seems a huge version jump indeed.
By now I am able to log in again with following steps :
1 "skip-grant-tables" in /etc/my.cnf
2 "service mysqld restart"
3 "use mysql; update user set authentication_string=PASSWORD("NewPasswd") where User='root'; flush privileges;"
Code:
mysql --version
mysql Ver 14.14 Distrib 5.7.26, for Linux (x86_64) using EditLine wrapper
I now have the strange thing that in PhpMyAdmin the tab "Users" is emtpy. It does not load.
Also PhpMyAdmin gives strange info :
Code:
Server version: 5.1.73 - Source distribution
Client version: libmysql - 5.1.72
It seems it does not see the correct MySQL version.
Last edited by jonaskellens; 06-26-2019 at 09:58 AM.
I did not check that document. It seems a huge version jump indeed.
By now I am able to log in again with following steps :
1 "skip-grant-tables" in /etc/my.cnf
2 "service mysqld restart"
3 "use mysql; update user set authentication_string=PASSWORD("NewPasswd") where User='root'; flush privileges;"
Code:
mysql --version
mysql Ver 14.14 Distrib 5.7.26, for Linux (x86_64) using EditLine wrapper
Good!
Quote:
Originally Posted by jonaskellens
I now have the strange thing that in PhpMyAdmin the tab "Users" is emtpy. It does not load.
Also PhpMyAdmin gives strange info :
Code:
Server version: 5.1.73 - Source distribution
Client version: libmysql - 5.1.72
It seems it does not see the correct MySQL version.
Great. Now, as for your applications (that use databases on this MySQL instance), are all of them functioning?
If so, may be reinstalling phpmyadmin will resolve its issues. I do not use phpmyadmin, so can't help you much with it
Great. Now, as for your applications (that use databases on this MySQL instance), are all of them functioning?
If so, may be reinstalling phpmyadmin will resolve its issues. I do not use phpmyadmin, so can't help you much with it
An application of mine that uses a particular mysql user is unable to connect. Mysql err log says :
Code:
2019-06-27T17:47:33.263349Z 68465 [Note] Access denied for user 'MyUser'@'localhost' (using password: YES)
PhpMyAdmin latest version got installed together with mysql-community-server-5.7.26-1 :
Code:
Package phpMyAdmin-4.0.10.20-1.el6.noarch already installed and latest version
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.