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.
Hello, I'm trying to connnect and configure the root password for mysql after a fresh install.
I've done the following
1. yum install
mysql-server mysql-administrator mysql mysql-gui-common php-mysql
2. service mysqld start
At this point from what I understand, the root mysql account should have no password set so I can either
A. connect to the database with mysql -u root. with this I'm getting the following error.
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
or I can set the root password with
B. mysqladmin -u root password 'newpassword' which yields the same error. I've searched tirlessly to resolve this on my own but everything I read says this only happens if you have set a password for root which I haven't done. Any help would be greatly appreciated..Thanks
Usually by default as root just run mysql without any options and it will log you into the database. Then setup a password for the root user or create another admin type user is the better way to go and disable the known root user it creates.
Thanks for your help, however I was able to fix the problem by deleting the /var/lib/mysql directory..Apparently it retains settings from previous installs.
Thanks for your help, however I was able to fix the problem by deleting the /var/lib/mysql directory..Apparently it retains settings from previous installs.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.