Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

To install MySql I tried this after downloading the rpm package from the official website :

yum install MySQL-server-5.5.27-1.linux2.6.i386.rpm

Everything went fine and process was completed but now how do I start this RDMS ? I don't see any icon created in the application tab in fedora 16. I am not sure if everything went fine.

Even if I need to check that is it installed properly how do I check and if installed properly how do I start MySql ?

Edit :

  • Output of rpm -ql MySQL-server --> package MySQL-server is not installed
  • Output of service mysqld start ---> Redirecting to /bin/systemctl start mysqld.service

Note : I also used this : yum install mysql-server and at the end got a success message : Installed: mysql-server.i686 0:5.5.27-1.fc16

share|improve this question
    
ls /etc/init.d | grep -i mysql? –  quanta Sep 20 '12 at 13:28
    
@quanta what is this ? –  Suhail Gupta Sep 20 '12 at 13:49
    
To check the name of the init script. –  quanta Sep 20 '12 at 13:57
    
@quanta displays nothing –  Suhail Gupta Sep 20 '12 at 14:03
    
To query files in this package rpm -ql MySQL-server? –  quanta Sep 20 '12 at 14:33
add comment

1 Answer

up vote 2 down vote accepted
yum install mysql-server (is how you install the version in the repo)
service mysqld start (is how you start is, you can also use /etc/init.d/mysqld start)
chkconfig mysqld on (makes sure it starts when you reboot the server)
share|improve this answer
    
when I enter the command service mysqld start I get this message Redirecting to /bin/systemctl start mysqld.service Failed to issue method call: Unit mysqld.service failed to load: No such file or directory. See system logs and 'systemctl status mysqld.service' for details. Why do I get this ? –  Suhail Gupta Sep 20 '12 at 13:41
    
The way I installed mysql is incorrect ? –  Suhail Gupta Sep 20 '12 at 13:42
    
@SuhailGupta You installed a MySQL package from a source other than Fedora. You should consult the packager for their documentation. –  Michael Hampton Sep 20 '12 at 13:57
    
@MichaelHampton shall I re-install it using the command given in the answer –  Suhail Gupta Sep 20 '12 at 14:04
    
systemctl status mysqld.service? tail -f /var/log/messages? –  quanta Sep 20 '12 at 14:07
show 12 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.