1

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

5
  • ls /etc/init.d | grep -i mysql?
    – quanta
    Sep 20, 2012 at 13:28
  • @quanta what is this ? Sep 20, 2012 at 13:49
  • To check the name of the init script.
    – quanta
    Sep 20, 2012 at 13:57
  • @quanta displays nothing Sep 20, 2012 at 14:03
  • To query files in this package rpm -ql MySQL-server?
    – quanta
    Sep 20, 2012 at 14:33

1 Answer 1

2
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)
17
  • 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 ? Sep 20, 2012 at 13:41
  • The way I installed mysql is incorrect ? Sep 20, 2012 at 13:42
  • @SuhailGupta You installed a MySQL package from a source other than Fedora. You should consult the packager for their documentation. Sep 20, 2012 at 13:57
  • @MichaelHampton shall I re-install it using the command given in the answer Sep 20, 2012 at 14:04
  • systemctl status mysqld.service? tail -f /var/log/messages?
    – quanta
    Sep 20, 2012 at 14:07

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .