Ask Your Question
0

how can i locate mysql

asked 2012-06-19 13:24:36 -0600

ChenStev99 gravatar image

hallo,

i have installe Mysql (tutorial), but i don't know where i installe it. because i can not stop it.

[stevchen99@localhost ~]$ su -
Password: 
[root@localhost ~]# /etc/init.d/mysqld stop
-bash: /etc/init.d/mysqld: No such file or directory

Thanks you in advance, Stev

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
3

answered 2012-06-21 07:16:43 -0600

Remi gravatar image

updated 2012-06-21 08:41:52 -0600

First, direct call to /etc/init.d/ script (when it exists) is a very bad practice.

As said in previous answer, You should use the "service" command.

On recent fedora version, mysql service is managed by systemd ("service" command still works, but will redirect to "systemctl" command), so

systemctl start mysqld.service
edit flag offensive delete link more
2

answered 2012-06-19 14:40:02 -0600

Brallan gravatar image

updated 2012-06-19 14:47:24 -0600

You can type (to stop it)

sudo service mysqld stop

If you want to locate it for other purposes, you can do:

type mysql

to find out where is the executable, or

locate mysql

to search where is mysql. The disadvantage is you will possibly obtain much adresses.

I hope it helps you!

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-06-19 13:24:36 -0600

Seen: 176 times

Last updated: Jun 21 '12