Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Hi there.
I recently tried to learn how to set up mysql server in my Redhat 9 box. I followed a reference book demonstrating how to locate and start mysql server by typing at the shell:
>locate mysql.server ; and
>./mysql.server start
However, I could not locate mysql.server and also could not use the ./mysql.server to start the server.
Can anyone tell me where on earth mysql.server is located and how to start it up?
Hi there. It really confused much!
I started, as you advised, the mysql server and as a root, typed at the shell 'mysql' and the system prompted me with the following message.
error 2002: can't connect to local mysql server through socket 'var/lib/mysql/mysql.sock'(2)!
I also followed the procedures as to how to set the password for the root but still it failed.
Can anyone please tell me what did I miss?
Cheers.
Hi there. Thanks for your prompt reply.
Well, it seems I've sorted first problem out. Now I've got another one when I issued the command >mysql -u root OR mysqladmin -u root password "newpassword"
Hi there.
I did try 'mysql' without any other parameters command at the shell at first but it kept prompting me with "ERROR 1045 : Access denied for user: 'root@localhost' (Using password: NO)"!
I thought I might have missed something.
Any advice?
Cheers.
I don't know if you've already been trying to set passwords and users by either way try the link below, maybe you've already seen, only difference in procedure should be you'll do
service mysqld stop
probably
Hmm...Bingo!
I tried 'mysql -u root -p' first and it prompted me to enter the password and...I entered the new PW and I got it!
Thank you very much indeed.
Cheers.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.