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.
First of all, I am a super newbie at Linux and I am falling in love with it.
I have been trying to install Mysql for 2 days but I can't get it to work. I installed Mysql 3.23.38 something like that. It comes with the distribution. I am able to install it but when I try to create a root password like this: mysqladmin -u root password 'mypsw'
I get this message:
---------------------------------
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' ( 2)'
Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists!
------------------------------------------------------------
I try to locate mysql.sock and it does not exists..
So after searching hours for a solution I just cant find one. I had to uninstall Mysql. I tried two other Mysql versions 5.0.x and 4.1.x they both does not work. I am able to install them but when I type this in the terminal mysqladmin
it say bash error or file does not exists. So I use locate try to find it. Nope, I can't find it. Wow I can't do anything now. I am tired. Can someone please give me some advices. Please treat like a newbie and provide me examples of shell commands.
Two questions based on what you wrote :
A) when you go the error regarded '/var/lib/mysql/mysql.sock' did you do as it said in the error and make sure that mysqld was running ?
B) If you open a terminal and just type "mysql" and press the TAB key twice do you see a bunch of output (approx. 30 commands), or does it just do nothing ?
Yes Yes Yes, I got it to work. I typed in the terminal
mysql_install_db and it gave me instruction to setup root password and it works.
Wow your guys are good
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.