Once day you want to get the up time of application/ process. But you cannot really tell how long the process has been alive. To get this you may use a couple of commands like the following:
cattek@cattek:~$ ps -ax | grep nylas
7290 ? Sl 0:22 /usr/share/nylas/nylas
7294 ? S 0:00 /usr/share/nylas/nylas...
[HOW TO] fix Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'
When I reset 'mysql' root password, I couldn't do it. MySQL shows the notification:
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'
Firstly I kill all mysqld's process with
$sudo killall -9 mysql
But nothing to show.
Wait wait, I see /var/run/mysqld/mysqld.sock, but I couldn't found this.
Finally I found the solution:
$sudo /etc/init.d/mysql stop
$sudo...