Beginner Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherBeginner Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old April 8th, 2002, 06:55 PM
rbrugman rbrugman is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 9 rbrugman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Starting MySQL

How do you start MySQL server using the default RPM installation. I used Webmin and clicked the start button, but it's not showing up as being running. Any ideas?

Reply With Quote
  #2  
Old April 11th, 2002, 06:36 AM
Shiju Rajan's Avatar
Shiju Rajan Shiju Rajan is offline
.Net Developer
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2000
Location: London
Posts: 987 Shiju Rajan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 26 m 22 sec
Reputation Power: 9
Send a message via MSN to Shiju Rajan Send a message via Yahoo to Shiju Rajan
start using mysqlid application.you can check whether mysql is running or not using mysql manager.

read the 'Read Me' file which will help you to solve the problem easily.also try to post this question in mysql forum here.
__________________
SR -
webshiju.com
www.lizratechnologies.com

"The fear of the LORD is the beginning of knowledge..."

Reply With Quote
  #3  
Old April 11th, 2002, 08:28 AM
Bob Loblaw Bob Loblaw is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Posts: 174 Bob Loblaw User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
to allow tcp/ip for remote connects
mysql.server start
wherever that binary would be located or

3.)safe_mysqld &

or it might be

safemysqld & yeah the above one

do that at your shell and it should be in your way and will start up in safe mode allowing only local socket connections.

1.)mysql_install_db --if not already

2.)you will also have to have proper permissions on your mysql directories
__________________


VCR clock programmer and toaster repairman, best rates and best work around

Reply With Quote
  #4  
Old April 11th, 2002, 02:20 PM
rbrugman rbrugman is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 9 rbrugman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I found the problem. When I installed the rpm, something is missing or wrong. It gives me the error:

ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

Is there a way to fix this?

Reply With Quote
  #5  
Old April 11th, 2002, 05:05 PM
Bob Loblaw Bob Loblaw is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Posts: 174 Bob Loblaw User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
1.)mysql_install_db --if not already
2.)you will also have to have proper permissions on your mysql directories ie chmod -R 755 /var/lib/mysql

Reply With Quote
  #6  
Old April 11th, 2002, 05:47 PM
rbrugman rbrugman is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 9 rbrugman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I tried both of those things, and when I try to create a database "mysql_install_db" it asks for me to make a password, but this is what I get when I try:

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 get pretty much the same "cant find socket" error whenever I try to do anything.

Reply With Quote
  #7  
Old April 12th, 2002, 07:17 AM
Hero Zzyzzx's Avatar
Hero Zzyzzx Hero Zzyzzx is offline
11
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Jul 2001
Location: Lynn, MA
Posts: 4,632 Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 23 h 12 m 33 sec
Reputation Power: 77
Send a message via AIM to Hero Zzyzzx
mysqladmin isn't used to start mysql.

to start a default redhat mysql install (you need to be root)
type

/etc/init.d/mysql start

to stop it, type

/etc/init.d/mysql stop

Reply With Quote
  #8  
Old April 12th, 2002, 01:49 PM
rbrugman rbrugman is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 9 rbrugman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
When I do this, i just get another message:

"Starting mysqld daemon with databases from /var/lib/mysql
020412 19:39:40 mysqld ended"

and nothing happends.

Reply With Quote
  #9  
Old April 12th, 2002, 03:14 PM
Hero Zzyzzx's Avatar
Hero Zzyzzx Hero Zzyzzx is offline
11
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Jul 2001
Location: Lynn, MA
Posts: 4,632 Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 23 h 12 m 33 sec
Reputation Power: 77
Send a message via AIM to Hero Zzyzzx
Hmm. My guess would be in your thrashing you royally mucked something up.

What distribution are you using? Redhat? You never said. Where did you get the RPMs?

/var/lib/mysql and all directories and files under it have to be owned by the user that MySQL runs as- on RedHat it is "mysql".

You can fix this by typing
chown -R mysql.mysql /var/lib/mysql
as root in the console.

Really, if you used the rpms that came with your distribution (which I've been assuming is redhat) and didn't screw things up, it should start using "/etc/init.d/mysqld start " pretty reliably.

Reply With Quote
  #10  
Old April 12th, 2002, 03:16 PM
Hero Zzyzzx's Avatar
Hero Zzyzzx Hero Zzyzzx is offline
11
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Jul 2001
Location: Lynn, MA
Posts: 4,632 Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 23 h 12 m 33 sec
Reputation Power: 77
Send a message via AIM to Hero Zzyzzx
From now on, post any and all MySQL questions to the MySQL forum.

Reply With Quote
  #11  
Old April 12th, 2002, 04:35 PM
rbrugman rbrugman is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 9 rbrugman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Actually I'm using Mandrake 8.0. I got the rpm's from redhat's site. All of the other ones I got from there worked, but I think that this time, there was some difference. I'm going to run the updater this weekend and see if it will download me the correct rpm's.


P.S. Being a beginner, this is the correct forum, seing that no one answered my question in the mysql forum last time.

Reply With Quote
  #12  
Old April 12th, 2002, 04:59 PM
Hero Zzyzzx's Avatar
Hero Zzyzzx Hero Zzyzzx is offline
11
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Jul 2001
Location: Lynn, MA
Posts: 4,632 Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 23 h 12 m 33 sec
Reputation Power: 77
Send a message via AIM to Hero Zzyzzx
Perhaps the reason you didn't get an answer before is because you didn't ask a specific enough question, or give enough information. For instance, you should have said what distribution you were using right off.

BTW- you shouldn't have used redhat RPMs with mandrake. That was a no-no.

Why didn't you just use the MySQL packages that came with mandrake? They work fine.

Make sure you read the man page for "rpm" and --erase the rpms before you try and install the correct Mandrake ones, otherwise you're going to be in a world of hurt even more than you are now.

The reason RPM-based systems break (and the reason folks curse them) is when you go around them without fully understand the consequences. . .like this case. Just stick to mandrake rpms in the future and all will work out.

Good luck! Once you get it working, it'll work forever.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherBeginner Programming > Starting MySQL


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |