SUSE / openSUSE This Forum is for the discussion of Suse Linux. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
11-27-2004, 08:41 AM
|
#1
|
Member
Registered: Jul 2004
Distribution: Suse Linux 10.2
Posts: 48
Rep:
|
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.
|
|
|
11-27-2004, 02:29 PM
|
#2
|
LQ Guru
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Rep: 
|
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
|
|
|
11-27-2004, 04:06 PM
|
#3
|
Member
Registered: Jul 2004
Distribution: Suse Linux 10.2
Posts: 48
Original Poster
Rep:
|
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
|
|
|
11-27-2004, 04:52 PM
|
#4
|
Member
Registered: Sep 2004
Posts: 144
Rep:
|
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.)
|
|
|
11-27-2004, 09:29 PM
|
#5
|
LQ Guru
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Rep: 
|
"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
|
|
|
All times are GMT -5. The time now is 07:33 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|