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 - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-18-2009, 07:12 AM   #16
smaj84_1
Member
 
Registered: Jul 2009
Location: Pakistan
Distribution: Fedora
Posts: 71

Original Poster
Rep: Reputation: 15

Quote:
Originally Posted by ThinkFree View Post
will install mysql client as well as mysql server.Add

yum install mysql mysql-server apache2 php
will let install LAMP
I have downloaded and when I tried to start mysql I receieved this:
root@vps2 [/]# service mysql start
Starting MySQL ERROR! Couldn't find MySQL manager (/usr/local/bin/mysqlmanager) or server (/usr/local/bin/mysqld_safe)

Please guide me.
 
Old 08-18-2009, 12:32 PM   #17
ThinkFree
Member
 
Registered: Jan 2009
Location: India
Distribution: Fedora, Arch, OpenSolaris
Posts: 112

Rep: Reputation: 20
mysql daemon is started using the command
Quote:
service mysqld start
on fedora.
 
Old 08-19-2009, 01:11 AM   #18
smaj84_1
Member
 
Registered: Jul 2009
Location: Pakistan
Distribution: Fedora
Posts: 71

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by ThinkFree View Post
mysql daemon is started using the command

on fedora.
It shows this:

root@vps2 [/]# service mysqld start
mysqld: unrecognized service

Tell me what should I do now?
 
Old 08-19-2009, 02:00 AM   #19
smaj84_1
Member
 
Registered: Jul 2009
Location: Pakistan
Distribution: Fedora
Posts: 71

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by smaj84_1 View Post
It shows this:

root@vps2 [/]# service mysqld start
mysqld: unrecognized service

Tell me what should I do now?

I have found these errors...
root@vps2 [/etc]# service mysqld start
mysqld: unrecognized service
root@vps2 [/etc]# service mysql start
Starting MySQL ERROR! Couldn't find MySQL manager (/usr/local/bin/mysqlmanager) or server (/usr/local/bin/mysqld_safe)
root@vps2 [/etc]# /etc/init.d/mysql start
Starting MySQL ERROR! Couldn't find MySQL manager (/usr/local/bin/mysqlmanager) or server (/usr/local/bin/mysqld_safe)
root@vps2 [/etc]# /etc/init.d/mysqld start
-bash: /etc/init.d/mysqld: No such file or directory
root@vps2 [/etc]# /etc/init.d/mysql.server start
Starting MySQL. SUCCESS!

It says Success but it doesnt really started I cannot access mysql command see this:
root@vps2 [/etc]# mysql -u root -p
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
mysql.sock does not exist in /tmp. even mysql.sock does not exist anywhere..what should I do now?
 
Old 08-19-2009, 07:03 AM   #20
ThinkFree
Member
 
Registered: Jan 2009
Location: India
Distribution: Fedora, Arch, OpenSolaris
Posts: 112

Rep: Reputation: 20
What output does command rpm -qa|grep mysql gives?
On my computer, it shows
Quote:
libdbi-dbd-mysql-0.8.3-4.fc11.i586
php-mysql-5.2.9-2.fc11.i586
mysql-libs-5.1.32-1.fc11.i586
mysql-connector-odbc-5.1.5r1144-4.fc11.i586
qt-mysql-4.5.2-1.fc11.i586
mysql-server-5.1.32-1.fc11.i586
mysql-embedded-5.1.32-1.fc11.i586
mysql-connector-java-3.1.12-7.fc11.i586
mysql-5.1.32-1.fc11.i586
You will be getting error 2002 if mysqld isn't started. As mysql isn't installed properly, you won't be able to login.
 
Old 08-19-2009, 07:05 AM   #21
smaj84_1
Member
 
Registered: Jul 2009
Location: Pakistan
Distribution: Fedora
Posts: 71

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by ThinkFree View Post
What output does command rpm -qa|grep mysql gives?
On my computer, it shows


You will be getting error 2002 if mysqld isn't started. As mysql isn't installed properly, you won't be able to login.
Here is the output:
-------------------------------------------------------------------------
root@vps2 [/]# rpm -qa|grep mysql
root@vps2 [/]#

-------------------------------------------------------------------------
 
Old 08-19-2009, 07:28 AM   #22
ThinkFree
Member
 
Registered: Jan 2009
Location: India
Distribution: Fedora, Arch, OpenSolaris
Posts: 112

Rep: Reputation: 20
^Means mysql isn't installed properly.
 
Old 08-19-2009, 08:23 AM   #23
smaj84_1
Member
 
Registered: Jul 2009
Location: Pakistan
Distribution: Fedora
Posts: 71

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by ThinkFree View Post
^Means mysql isn't installed properly.
I have solved this by disabling Selinux..
Thanks anyway..
 
Old 08-19-2009, 08:29 AM   #24
smaj84_1
Member
 
Registered: Jul 2009
Location: Pakistan
Distribution: Fedora
Posts: 71

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by smaj84_1 View Post
I have solved this by disabling Selinux..
Thanks anyway..
Now I m facing 2 another problems...

1, I have to mention full path to start mysql i.e. /usr/local/mysql/bin/mysql -u root -p
Why I have to use full path?

2, MySQL automatically TERMINATE in less than a minute.

Please guide me.

Thanks in advance..
 
Old 08-19-2009, 08:49 AM   #25
ThinkFree
Member
 
Registered: Jan 2009
Location: India
Distribution: Fedora, Arch, OpenSolaris
Posts: 112

Rep: Reputation: 20
^You didn't mention that you got any SELinux message. Next time onwards, provide all symptoms of your problem to get a speedy solution.
 
Old 08-19-2009, 12:20 PM   #26
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
smaj84_1 ... I merged 3 of your closely related threads,
and ask you to not do this again in the future. Stick
with one thread if the problem relate to one issue.

Should I see you doing this again I'll just close your
dupes, and set a link to the existing threads in the
closure notice.


Cheers,
Tink
 
Old 08-20-2009, 03:46 AM   #27
smaj84_1
Member
 
Registered: Jul 2009
Location: Pakistan
Distribution: Fedora
Posts: 71

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Tinkster View Post
smaj84_1 ... I merged 3 of your closely related threads,
and ask you to not do this again in the future. Stick
with one thread if the problem relate to one issue.

Should I see you doing this again I'll just close your
dupes, and set a link to the existing threads in the
closure notice.


Cheers,
Tink
Alright I will be careful next time...
 
  


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
Can MySQL log on via SSH/bash? mysql:x:27:101:MySQL Server:/var/lib/mysql:/bin/bash Ujjain Linux - Newbie 2 04-24-2009 02:21 PM
yum install php-mysql fails with mysql 5.1 - "Error: mysql conflicts with MySQL" rebelde Linux - Software 2 03-13-2009 10:32 AM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. SpellChainz Linux - Newbie 1 06-23-2007 03:35 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 - Newbie

All times are GMT -5. The time now is 03:00 PM.

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