LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 11-27-2004, 08:41 AM   #1
jginger
Member
 
Registered: Jul 2004
Distribution: Suse Linux 10.2
Posts: 48

Rep: Reputation: 15
Running Mysql in SuSE 9.1


I have installed mysql with yast and run the command

/usr/bin/mysql_install_db

However mysql will not start in either yast's runlevel editor or with the command mysql. Whenever I try to access mysql I get the error:

#2002 - Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock

Am I missing something obvious to get mysql running. Thanks for any help in getting this running.
 
Old 11-27-2004, 02:29 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Runlevel editor should be the ticket...

Hi -

It sounds like you're doing all the right things.

For whatever it's worth, here's what I did on my SuSE 9.1/Professional system after the basic install:

1. Go into YaST2, Install/Remove Software:
<= ADDED mySQL 4.3.4 (Server), mysql-client, mySql shared libs (4.0.18), php4-mysql;
SAID "YES" TO ALL REQUESTED DEPENDENCIES

2. Went back into YaST2, System, Runlevel Editor:
mysql => ENABLED

3. Deleted the anonymous user; set an explicit password on the root user:
mysql -uroot mysql
delete from user where User='';
quit

mysqladmin -uroot password SOME-PASSWORD
mysqladmin -uroot -hlocalhost password THE-SAME-PASSWORD-AS-ABOVE
<= NOTE: THIS CREATES A PASSWORD FOR MYSQL USER "ROOT" FOR BOTH DEFAULT HOST AND LOCALHOST

mysqladmin reload

4. Verified everything by logging in and running some commands from the "mysql" command shell.

'Hope that helps .. PSM
 
Old 11-27-2004, 04:06 PM   #3
jginger
Member
 
Registered: Jul 2004
Distribution: Suse Linux 10.2
Posts: 48

Original Poster
Rep: Reputation: 15
Still no luck. I tried reinstalling mysql and I was able to enable it the runlevel editor with no errors by I still get the error:

#2002 - Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock

When trying commands like:

mysqladmin -uroot password SOME-PASSWORD

Thanks for the reply
 
Old 11-27-2004, 04:52 PM   #4
SlowMindThinkin
Member
 
Registered: Sep 2004
Posts: 144

Rep: Reputation: 15
If it helps any, I never got beyond that point, either. However, the mysql documentation looks like it can get you through it. (I gave up to concentrate on connecting to the internet.)
 
Old 11-27-2004, 09:29 PM   #5
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
"Force Feeding" mysql...

Hi -

Assuming you've installed all needed components (mysql-shared, mysql and mysql-client), and assuming you have "root" permissions, try this (Suse Linux):

su - root
cd /etc/init.d
./mysql start

If the daemon comes up, then make sure the permissions in /var/lib/mysql are correct:

cd /var/lib
ls -lR mysql
<= SHOULD BE "mysql:daemon"

If necessary, then change the permissions manually:

chown -R mysql:daemon /var/lib/mysql

'Hope that helps .. PSM
 
  


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
Problems with MySQL on SuSE: Can't Connect (/var/lib/mysql/mysql.sock) neocookie Linux - Software 8 02-07-2008 11:48 PM
MySQL , is it running? is it there? Raggit Fedora 7 09-14-2005 02:02 PM
how do I know which ver of mysql i'm running? kfiralfia Linux - Software 1 04-01-2004 09:14 PM
Running MySQL from the distro ivanatora Slackware 1 02-26-2004 07:38 AM
running mysql ?? shaahul Linux - Software 1 09-03-2003 02:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 02:58 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