Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Dear all:
I m planning to configure a LAMP for the first time. Every thing work fine except mysql. It is my first experience of configuring mysql in linux.
After the installation of mysql, the /etc/hosts file is as under
=======================
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
#::1 system7.exmple.com system7
172.21.1.1 system7.example.com system7
========================
but i m getting the following error
[root@system7 ~]# mysql -u root -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
[root@system7 ~]# mysql -h system7 -u root -p
Enter password:
ERROR 1130 (00000): Host 'system7.example.com' is not allowed to connect to this MySQL server
[root@system7 ~]# mysql -h localhost -u root -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
[root@system7 ~]#
I had consulted an article on howtoforge.com but even after applying those changes, my system does not accept the password. The "localhost" entry is also not present in the "user" table. Please help me to solve this problem.
Dear all:
I m planning to configure a LAMP for the first time. Every thing work fine except mysql. It is my first experience of configuring mysql in linux.
After the installation of mysql, the /etc/hosts file is as under
=======================
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
#::1 system7.exmple.com system7
172.21.1.1 system7.example.com system7
========================
but i m getting the following error
[root@system7 ~]# mysql -u root -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
[root@system7 ~]# mysql -h system7 -u root -p
Enter password:
ERROR 1130 (00000): Host 'system7.example.com' is not allowed to connect to this MySQL server
[root@system7 ~]# mysql -h localhost -u root -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
[root@system7 ~]#
I had consulted an article on howtoforge.com but even after applying those changes, my system does not accept the password. The "localhost" entry is also not present in the "user" table. Please help me to solve this problem.
Try (as root), just typing in "mysql", and pressing enter. If this is a new installation, it should let you right in as root.
Look at the "grant" options in the MySQL knowledgebase, for details on how to add/modify users. You're probably having issues because you're putting password/host options in. The password, by the way, is for the root user in MySQL, NOT the Linux root user. The two are different.
Also, since you applied changes from "an article", if this doesn't work for you, it would help if you actually told us WHAT you did....
Finally I have resolved the problem. It was my mistake to delete localhost line from user table. I completed the required line and it is all ok now. Thanks for support.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.