Ubuntu下的mysql无法启动

之前是可以正常使用 ,但是重启过后无法打开mysql的服务
日志如下:
150616 12:31:15 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
150616 12:31:15 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.
150616 12:31:15 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
150616 12:31:15 [Note] Plugin 'FEDERATED' is disabled.
150616 12:31:15 InnoDB: The InnoDB memory heap is disabled
150616 12:31:15 InnoDB: Mutexes and rw_locks use GCC atomic builtins
150616 12:31:15 InnoDB: Compressed tables use zlib 1.2.8
150616 12:31:15 InnoDB: Using Linux native AIO
/usr/sbin/mysqld: Can't create/write to file '/tmp/ibpMAp8R' (Errcode: 13)
150616 12:31:15 InnoDB: Error: unable to create temporary file; errno: 13
150616 12:31:15 [ERROR] Plugin 'InnoDB' init function returned error.
150616 12:31:15 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
150616 12:31:15 [ERROR] Unknown/unsupported storage engine: InnoDB
150616 12:31:15 [ERROR] Aborting
150616 12:31:15 [Note] /usr/sbin/mysqld: Shutdown complete

150616 12:31:15 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended

在命令行直接输入mysql提示
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
但是整个系统都找不到 mysql.scok的文件,重启之后也没有

你看一下自己的/tmp目录是否是所有人可写(777权限)
sock文件只有sqld运行起来了才会有
温馨提示:答案为网友推荐,仅供参考