LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 08-09-2005, 01:37 PM   #1
RedHatCore
Member
 
Registered: Aug 2005
Distribution: Fedora Core 4
Posts: 60

Rep: Reputation: 15
MySQL Help Please!


I am running Fedora Core 4 and:

phpinfo(); on my web server says mysql is enabled..
the mysql.sock file doesn't exist... nor does anything in the mysql directory...
when i type in mysql in the command line i get this: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

I tried downloading mysql and installing again, but I'm a linux newb and don't know how.. i didn't see anything for fedora, so i tried Linux(x86 or wahtver) Server and RedHat enterpraise RPMs hoping they would work, but I don't know how to do this stuff... usually rpms install themselves... :P i don't know where they go to in the first place, I can never find where they installed or how to run them(i'd be happy if someone could clear that up for me) but anywho, how do I install mysql on fedora core 4? ... and get it working at the same time(wow )

Thanks a lot!

-- RedHatCore the linux newbie who doesn't deserve his screen name :P

Last edited by RedHatCore; 08-09-2005 at 01:39 PM.
 
Old 08-09-2005, 03:27 PM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
First off, when you type "mysql" at the prompt that's simply the client you're starting. You need to have the server running as well (when the server starts it creates the sock file). It has been years since I used an rpm based distribution, but I think that the command rpm -qa | grep mysql will list all the mysql-related packages installed. You should probably be looking for "mysql-server-...".

RedHat has its own tools for starting and stopping services and defining what services to launch at boot and so on. If you search the RedHat/Fedora section of this site I am sure you will find hints on starting and stopping it.

Oh, and if you really are running RedHat 8 you should upgrade as soon as possible. Running an old non-supported distribution is a sure way of getting into security related problems quickly. A distribution very popular among Linux newbies and veterans alike is Ubuntu, a Debian derivative, you might want to check that out if you're not comfortable with Fedora Core.


Håkan
 
Old 08-10-2005, 07:45 AM   #3
RedHatCore
Member
 
Registered: Aug 2005
Distribution: Fedora Core 4
Posts: 60

Original Poster
Rep: Reputation: 15
I know where that is! But even If I get it started(I'm on windows right now ) I still need to know how to change the password for 'root' so I can get phpmyadmin working kuz I duno the password...
 
Old 08-10-2005, 08:20 AM   #4
Marchsteiner
LQ Newbie
 
Registered: Aug 2004
Distribution: Gentoo
Posts: 11

Rep: Reputation: 0
If it is on local machine, the use config and user "root" with no password.. Or?
 
Old 08-10-2005, 10:56 AM   #5
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
mysqladmin -u root password new-password is the command to set root's password when none is set. Then enter the mysql client (mysql -u root -p) and create a new user for everyday use (root should only do maintenance). Look up the GRANT and REVOKE options in the MySQL manual.


Håkan
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. NoviceW Linux - Networking 17 09-17-2014 02:13 PM
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock welery Linux - Software 19 03-06-2014 07:19 AM
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. suziecorbett Linux - Software 8 10-09-2008 01:52 AM
Problems with MySQL on SuSE: Can't Connect (/var/lib/mysql/mysql.sock) neocookie Linux - Software 8 02-07-2008 11:48 PM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 08:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration