Olá pessoal, por favor, ignore minha noobness,
Meu problema começa por se conectar ao mysql no Ubuntu 12.04
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
e depois de depuração e googling eu encontrei seguindo em error.log,
130714 11:23:45 [Note] Plugin 'FEDERATED' is disabled.
^G/usr/sbin/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)
130714 11:23:45 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
130714 11:23:45 InnoDB: The InnoDB memory heap is disabled
130714 11:23:45 InnoDB: Mutexes and rw_locks use GCC atomic builtins
130714 11:23:45 InnoDB: Compressed tables use zlib 1.2.3.4
^G/usr/sbin/mysqld: Can't create/write to file '/tmp/ibcN8p9L' (Errcode: 13)
130714 11:23:45 InnoDB: Error: unable to create temporary file; errno: 13
130714 11:23:45 [ERROR] Plugin 'InnoDB' init function returned error.
130714 11:23:45 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
130714 11:23:45 [ERROR] Unknown/unsupported storage engine: InnoDB
130714 11:23:45 [ERROR] Aborting
Aqui estão algumas das minhas configurações de /etc/mysql/my.cnf
user = mysql
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /tmp
lc-messages-dir = /usr/share/mysql
skip-external-locking
Estas são as informações do meu espaço em disco que eu recebo executando df -h
Filesystem Size Used Avail Use% Mounted on
/dev/vda 20G 2.0G 17G 11% /
udev 246M 4.0K 246M 1% /dev
tmpfs 100M 200K 99M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 248M 0 248M 0% /run/shm
Aqui estão os detalhes da minha utilização de memória
total used free shared buffers cached
Mem: 495 93 401 0 16 49
-/+ buffers/cache: 28 467
Swap: 0 0 0
Quando eu executo mysql_install_db
ou mysql_upgrade
(como se diz nos detalhes do erro), isso me dá
Installing MySQL system tables...
Installation of system tables failed! Examine the logs in
/var/lib/mysql for more information.
You can try to start the mysqld daemon with:
shell> /usr/sbin/mysqld --skip-grant &
and use the command line tool /usr/bin/mysql
to connect to the mysql database and look at the grant tables:
shell> /usr/bin/mysql -u root mysql
mysql> show tables
Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in /var/lib/mysql that may be helpful.
Please consult the MySQL manual section
'Problems running mysql_install_db', and the manual section that
describes problems on your OS. Another information source are the
MySQL email archives available at http://lists.mysql.com/.
Please check all of the above before mailing us! And remember, if
you do mail us, you MUST use the /usr/scripts/mysqlbug script!
Eu pesquisei muito, alguns dizem para reiniciar e, em seguida, iniciar o serviço mysql, alguns sugerem para reinstalar o mysql, mas ainda não sou capaz de torná-lo correto. Por favor me ajude.
Obrigado