Runnable.comの初期状態でなぜかMySQLを使えないので苦肉の策
最近、Runnable.com を大いに活用しています。
が、なぜか『Create New』した初期状態ではMySQLを使うことができません。
他者のサンプルでは動作しているのに…。
いろいろ試したところ、「mysqld.sock
が存在しないから無理だ」との結論に達しました。
で、苦肉の策として、動作している他者のサンプルを『Save Draft』して自分の草稿とした上でMySQLを利用することにしました (-_-;)
とりあえずはしのげたものの、以下の検証結果をのちほど運営に報告します ∠(`・ω・´)
すべて、サンプルのページごとに用意されている『Terminal』での実行結果です。
MySQLを起動できない
root@runnable:/var/www# mysql -u root ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
mysqld.sock
が存在しない
root@runnable:/var/www# ls -al /var/run/mysqld/mysqld.sock ls: cannot access /var/run/mysqld/mysqld.sock: No such file or directory
なお、正常の場合。
root@runnable:/var/www# ls -al /var/run/mysqld/mysqld.sock srwxrwxrwx 1 root root 0 Jun 30 16:53 /var/run/mysqld/mysqld.sock
mysqldが起動していない
root@runnable:/var/www# ps ax | grep mysqld 84 pts/0 SN+ 0:00 grep mysqld
なお、正常の場合。
root@runnable:/var/www# ps ax | grep mysqld 9 ? Ssl 0:00 mysqld 75 pts/0 SN+ 0:00 grep mysqld
mysqld start
で起動できない
root@runnable:/var/www# mysqld start 140630 15:49:23 [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. 140630 15:49:24 [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. 140630 15:49:24 [Note] Plugin 'FEDERATED' is disabled. mysqld: Can't find file: './mysql/plugin.frm' (errno: 13) 140630 15:49:24 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it. 140630 15:49:24 InnoDB: The InnoDB memory heap is disabled 140630 15:49:24 InnoDB: Mutexes and rw_locks use GCC atomic builtins 140630 15:49:24 InnoDB: Compressed tables use zlib 1.2.7 140630 15:49:24 InnoDB: Using Linux native AIO mysqld: Can't create/write to file '/tmp/ibpbT9kq' (Errcode: 13) 140630 15:49:24InnoDB: Error: unable to create temporary file; errno: 13 140630 15:49:24 [ERROR] Plugin 'InnoDB' init function returned error. 140630 15:49:24 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. mysqld: Too many arguments (first extra is 'start'). Use --verbose --help to get a list of available options 140630 15:49:24 [ERROR] Aborting 140630 15:49:24 [Note] mysqld: Shutdown complete