1. ¡OFERTA! con cupón "DIRVPS": hosting por $0,01 y también VPS Linux y Windows por $0,01 el primer mes por Interserver ← publi
    Descartar aviso
Descartar aviso
Al usar este sitio web, aceptas que nosotros y nuestros socios podamos establecer cookies para fines tales como personalizar el contenido y la publicidad. Más información.

Cómo habilitar InnoDB Plugin En MySQL 5.5

Tema en 'VPS Hosting' iniciado por spairo, 5 Abr 2015.

  1. spairo

    spairo Usuario activo

    Hola Amigos de CH,

    Alguien sabe como habilitar InnoDB enginee, en mysql 5.5 corriendo sobre centos 6 con WHM/cpanel.

    He intentado lo siguiente,

    vim /etc/my.cnf

    [mysqld]
    ignore_builtin_innodb
    plugin-load=innodb=ha_innodb_plugin.so
    ;innodb_trx=ha_innodb_plugin.so
    ;innodb_locks=ha_innodb_plugin.so
    ;innodb_lock_waits=ha_innodb_plugin.so
    ;innodb_cmp=ha_innodb_plugin.so
    ;innodb_cmp_reset=ha_innodb_plugin.so
    ;innodb_cmpmem=ha_innodb_plugin.so
    ;innodb_cmpmem_reset=ha_innodb_plugin.so

    despues:
    /etc/init.d/mysql restart

    muestra esto:
    ERROR! MySQL server PID file could not be found!
    Starting MySQL. ERROR! The server quit without updating PID file (/var/lib/mysql/hostname.pid)


    Los logs:

    150331 02:41:18 mysqld_safe mysqld from pid file /var/lib/mysql/hostname.pid ended
    150331 02:41:31 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
    150331 2:41:31 [Note] Plugin 'FEDERATED' is disabled.
    150331 2:41:31 InnoDB: The InnoDB memory heap is disabled

    Alguien sabe como activarlo?

    Saludos y gracias por la ayuda.
     
  2.  
  3. Datacenter1

    Datacenter1 Usuario activo

    El plugin viene incluido en 5.5 y superiores, no necesitas estas líneas
    ignore_builtin_innodb
    plugin-load=innodb=ha_innodb_plugin.so
     
  4. spairo

    spairo Usuario activo

    Pense lo mismo, pero al ver mis engienns disponibles, no lo carga, uso centos 6 con WHM/cpanel

    mysql> show engines;
    +--------------------+---------+----------------------------------------------------------------+--------------+------+------------+
    | Engine | Support | Comment | Transactions | XA | Savepoints |
    +--------------------+---------+----------------------------------------------------------------+--------------+------+------------+
    | MyISAM | DEFAULT | MyISAM storage engine | NO | NO | NO |
    | MRG_MYISAM | YES | Collection of identical MyISAM tables | NO | NO | NO |
    | CSV | YES | CSV storage engine | NO | NO | NO |
    | BLACKHOLE | YES | /dev/null storage engine (anything you write to it disappears) | NO | NO | NO |
    | MEMORY | YES | Hash based, stored in memory, useful for temporary tables | NO | NO | NO |
    | PERFORMANCE_SCHEMA | YES | Performance Schema | NO | NO | NO |
    | ARCHIVE | YES | Archive storage engine | NO | NO | NO |
    | FEDERATED | NO | Federated MySQL storage engine | NULL | NULL | NULL |
    +--------------------+---------+----------------------------------------------------------------+--------------+------+------------+
    8 rows in set (0.00 sec)

    mysql>
     
  5. Datacenter1

    Datacenter1 Usuario activo

    Que extraño, la salida de un server centos 6 con mysql 5.5 sin que se le haya tenido que activar nada:
    Welcome to the MySQL monitor. Commands end with ; or \g.
    Your MySQL connection id is 89778
    Server version: 5.5.42-cll MySQL Community Server (GPL)

    Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.

    Oracle is a registered trademark of Oracle Corporation and/or its
    affiliates. Other names may be trademarks of their respective
    owners.

    Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

    mysql> show engines;
    +--------------------+---------+----------------------------------------------------------------+--------------+------+------------+
    | Engine | Support | Comment | Transactions | XA | Savepoints |
    +--------------------+---------+----------------------------------------------------------------+--------------+------+------------+
    | MyISAM | DEFAULT | MyISAM storage engine | NO | NO | NO |
    | MRG_MYISAM | YES | Collection of identical MyISAM tables | NO | NO | NO |
    | CSV | YES | CSV storage engine | NO | NO | NO |
    | BLACKHOLE | YES | /dev/null storage engine (anything you write to it disappears) | NO | NO | NO |
    | MEMORY | YES | Hash based, stored in memory, useful for temporary tables | NO | NO | NO |
    | PERFORMANCE_SCHEMA | YES | Performance Schema | NO | NO | NO |
    | ARCHIVE | YES | Archive storage engine | NO | NO | NO |
    | FEDERATED | NO | Federated MySQL storage engine | NULL | NULL | NULL |
    | InnoDB | YES | Supports transactions, row-level locking, and foreign keys | YES | YES | YES |
    +--------------------+---------+----------------------------------------------------------------+--------------+------+------------+

    Podrías hacer el upgrade a 5.6 desde WHM, esto debe darte soporte para innodb, puedes colocar la salida de mysql -V ?
     
  6. Datacenter1

    Datacenter1 Usuario activo

    que pasa si le colocas al my.cnf ?
    innodb_file_per_table=1
    innodb_buffer_pool_size=1024M
     
  7. spairo

    spairo Usuario activo

    Hola, Podrias enseñarme tu /etc/my.cnf

    El mismo esta asi por default:

    default-storage-engine=MyISAM
    innodb_file_per_table=1
    max_allowed_packet=268435456
    open_files_limit=10000



    # mysql -v
    Welcome to the MySQL monitor. Commands end with ; or \g.
    Your MySQL connection id is 2825
    Server version: 5.5.42-cll MySQL Community Server (GPL)

    Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.

    Oracle is a registered trademark of Oracle Corporation and/or its
    affiliates. Other names may be trademarks of their respective
    owners.

    Reading history-file /root/.mysql_history
    Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
     
  8. Datacenter1

    Datacenter1 Usuario activo

    N0 hay nada especial en el my.cnf
    En el servidor cpanel que usé para la prueba el my.cnf en uso es:
    CODE, HTML o PHP Insertado:
    [mysqld]
    slow-query-log=1
    long-query-time=1
    slow-query-log-file="/var/log/mysql-slow.log"
    innodb_file_per_table=1
    query_cache_size=1024M
    tmp_table_size=256M
    max_heap_table_size=256M
    thread_cache_size=32
    table_cache=20000
    max_connections=100
    key_buffer=350M
    myisam_sort_buffer_size=2M
    join_buffer_size=4M
    read_buffer_size=1M
    sort_buffer_size=2M
    interactive_timeout=25
    wait_timeout=1000
    connect_timeout=10
    max_allowed_packet=268435456
    max_connect_errors=10
    query_cache_limit=32M
    query_cache_type=1
    innodb_buffer_pool_size=256M
    default-storage-engine=MyISAM
    open_files_limit=60000
    log-error="/var/log/mysqld.log"
    
    
    [mysqld_safe]
    
    [mysqldump]
    max_allowed_packet=16M
    
    [myisamchk]
    key_buffer=64M
    sort_buffer=64M
    read_buffer=16M
    write_buffer=16M
     
    A ideasmultiples le gusta esto.
  9. spairo

    spairo Usuario activo

    Voy a subir a 5.6 mysql, espero eso ayude,

    Gracias.
     
  10. Skamasle

    Skamasle Usuario activo

    Has reiniciado el mysql luego de quitar el ignore built in etc ?

    Checa conesto: show variables like 'ignore%';

    +-----------------------+-------+
    | Variable_name | Value |
    +-----------------------+-------+
    | ignore_builtin_innodb | OFF |
    +-----------------------+-------+
    1 row in set (0.00 sec)

    Aunque no lo tengas en my.cnf puede que lo tengas ON.
     
    A spairo le gusta esto.
  11. spairo

    spairo Usuario activo

    Gracias Ubuntero,

    Lo resolvi volando el WHM/CPANEL e installando limpiamente todo, ahora ya lo carga, por default,

    Gracias por el Tip Ubuntero.
     
  12. Skamasle

    Skamasle Usuario activo

    Ubuntero made in on debian :brindis:

    Ya no ando por esos foros hace años :policia:

    Igual no es buena idea cargarse el whm entero :golpe: si vuelve a pasar y estas en producción tienes que saber como solucionarlo.
     


Alojamiento web, Hosting Reseller, Servidores Dedicados - All in Hosting


    
    
    
    
Blog · Sitios amigos: GuiaHosting · Unidominios · Interalta ·