LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-31-2004, 10:24 PM   #1
Longinus
Member
 
Registered: Sep 2003
Distribution: Redhat 9.0 && Slackware 9.1
Posts: 420

Rep: Reputation: 30
Question how to run and setup mysql


hi there

how would i configure and run mysql?

thank you
 
Old 04-01-2004, 01:12 AM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Gee that's a little vague you think? Have you even attempted a search or checked the documentation at www.mysql.com ? I actually read most of their online book, its quite good.
 
Old 04-01-2004, 01:15 AM   #3
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
Or take a look at http://www.linux-corner.net/linux/services/mysql.html
 
Old 04-01-2004, 01:53 AM   #4
mardanian
Member
 
Registered: Mar 2004
Distribution: Fedora
Posts: 254

Rep: Reputation: 30
no one will guide you through all to do, however google it and there arelot of resources on net
 
Old 04-01-2004, 09:15 AM   #5
Longinus
Member
 
Registered: Sep 2003
Distribution: Redhat 9.0 && Slackware 9.1
Posts: 420

Original Poster
Rep: Reputation: 30
oh i thought starting mysql wasnt a long process

heh sory guys im pretty new to this

well the way i try to start starting mysql is

mysql

and then it gives me an error:

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

so i try running mysqld_safe &

and then i get this:

bash-2.05b# Starting mysqld daemon with databases from /var/lib/mysql
040401 07:10:56 mysqld ended

ive done alot of searching here on linuxquestions.org, and it seems to be a common problem, i have tried to do many of the suggestions on other threads but they still dont work

sorry for being vauge

Last edited by Longinus; 04-02-2004 at 09:12 AM.
 
Old 04-01-2004, 11:42 PM   #6
Longinus
Member
 
Registered: Sep 2003
Distribution: Redhat 9.0 && Slackware 9.1
Posts: 420

Original Poster
Rep: Reputation: 30
hrm... ive tried looking some more and i tried restarting, but that didnt work either... any sugesstions?

thanks
 
Old 04-02-2004, 04:22 AM   #7
Cerbere
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & LFS
Posts: 799

Rep: Reputation: 33
Did you try running mysql_install_db? Of course you did. Because you've read the documentation that comes with mysql. So you also know that you have to run this command as user mysql, right?

What do you expect to happen when you 'run mysql'? And why are you trying to use mysql to start apache? You start apache with the command 'apachectl start' (in Slack, don't know or care about RH). BTW which distro are you talking about?

What do you want to do with mysql?

Since you asked for suggestions, I'd suggest you give some more information.

Enjoy!
--- Cerbere
 
Old 04-02-2004, 09:11 AM   #8
Longinus
Member
 
Registered: Sep 2003
Distribution: Redhat 9.0 && Slackware 9.1
Posts: 420

Original Poster
Rep: Reputation: 30
oh sorry

this is for slackware

and i made an error where it says 'apache' it should have been 'mysql'

sorry

ill be using mysql to make databases and tables from what the tutorial im reading tells me haha, sorry im really new to mysql so i dont know too much.

need any more information?

thanks

Edit: oh yeah and i have tried mysql_install_db and i didnt seem to get any errors so then i tried starting mysqld_safe & again and it does the same thing, and then i tried running mysql but it gave me the same error

Last edited by Longinus; 04-02-2004 at 09:21 AM.
 
Old 04-02-2004, 08:57 PM   #9
Longinus
Member
 
Registered: Sep 2003
Distribution: Redhat 9.0 && Slackware 9.1
Posts: 420

Original Poster
Rep: Reputation: 30
hrm

should i remove mysql and reinstall it?

or would that be unnecessary?

any suggestions?

thanks
 
Old 04-03-2004, 04:38 AM   #10
Cerbere
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & LFS
Posts: 799

Rep: Reputation: 33
Try this thread.

Enjoy!
--- Cerbere
 
Old 04-03-2004, 04:28 PM   #11
Longinus
Member
 
Registered: Sep 2003
Distribution: Redhat 9.0 && Slackware 9.1
Posts: 420

Original Poster
Rep: Reputation: 30
ah

thanks guys i got it working thanks cerbere

all i did was restart lol and started mysqld_safe &

and then enter mysql

thanks guys
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
MySQL setup. sikofitt Programming 1 09-29-2005 05:43 AM
can't run mysql ekaja Linux - Software 3 12-18-2004 02:56 PM
MYsql can't run ekaja Slackware - Installation 2 11-15-2004 05:58 AM
MySQL setup stops at command "./configure --prefix=/usr/local/mysql" k41184 Linux - Software 1 05-20-2004 03:44 PM
MySQL cant run run-all-tests demmylls Linux - Software 5 02-18-2004 03:08 AM


All times are GMT -5. The time now is 05:08 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration