mysql - unable to connect to system bus: failed to connect to socket /var/run/dbus/system_bus_socket -
i started use new vps system ubuntu 12.04
after following commands here installed php, mysql, apache2
php , apache working great when run :
service mysql start i : unable connect system bus: failed connect socket /var/run/dbus/system_bus_socket: no such file or directory.
i googled didn't find enough me.
there no /var/run/dbus/ directory , don't know need create 1 or if problem mysql.
i had error message , discovered sign initctl (the 'init daemon control tool') being called (indirectly) without necessary privileges.
in other words:
it failed because:
- i not logged in
rootuser, - nor prefixing 'daemon control' command
sudo.
either 1 have solved issue.
it's bit confusing because have thought 'privilage issue' trigger error message talks 'privilage thangs'. but, no. talks being "unable connect system bus".
so, may suggest:
try temporarily elevating privileges prefixing command sudo.
assuming hash symbol (#) indicates command prompt, run following command instead:
# sudo service mysql start then, type in user password prompted.
or
if have set password root user on installation of ubuntu, elevate super user typing:
# su then, type in root password prompted.
then, in this context, original command should, now, work:
# service mysql start see it's man page description more information initctl's connection service start, stop, restart, reload , status commands.
Comments
Post a Comment