Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Page 2 of 2 FirstFirst 1 2
Results 16 to 21 of 21
  1. #16
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: innoDB not enabled by default?

    Quote Originally Posted by naveednexus View Post
    i am facing the same problem, how i will enable the InnDB from Phpmyadmin , i have checked the my.cnd file but it does not exist. then i checked the my.cnf file but it does not allow me to open it , it shows permission denied.

    kindly show me the way how it will check that InnDB support is enabled on server or not.
    You need root access to the server to modify /etc/my.cnf. If you lack root access then you will need to open a support ticket with your web host provider.
    Kenneth
    Product Manager
    cPanel, Inc.

  2. #17
    Member
    Join Date
    Jan 2010
    Location
    Orlando, FL
    Posts
    47
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: innoDB not enabled by default?

    Quote Originally Posted by naveednexus View Post
    i am facing the same problem, how i will enable the InnDB from Phpmyadmin , i have checked the my.cnd file but it does not exist. then i checked the my.cnf file but it does not allow me to open it , it shows permission denied.

    kindly show me the way how it will check that InnDB support is enabled on server or not.
    ** Are you accessing your my.cnf file as root on your system or are you at least using sudo??

    (i.e. sudo vi /etc/my.cnf or sudo nano/pico /etc/my.cnf)

    If not, that would explain the permission denied issue (you have to be root or su to root).

    Let me know. . .
    Follow me on Twitter!

    - Eric Gillette

  3. #18
    Member hostmedic's Avatar
    Join Date
    Apr 2003
    Location
    Ohio
    Posts
    556
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default how to check if innodb is enabled:

    There are two ways to verify if innodb is supported - i will skip how to check via phpmyadmin...

    If you are in the command line already simply execute the following

    Code:
    mysql -u root -p
    place in your root password

    Now Type in
    Code:
    show engines;
    It should show something like this

    mysql> show engines;
    +------------+---------+----------------------------------------------------------------+
    | Engine | Support | Comment |
    +------------+---------+----------------------------------------------------------------+
    | MyISAM | DEFAULT | Default engine as of MySQL 3.23 with great performance |
    | MEMORY | YES | Hash based, stored in memory, useful for temporary tables |
    | InnoDB | YES | Supports transactions, row-level locking, and foreign keys |
    | BerkeleyDB | NO | Supports transactions and page-level locking |
    | BLACKHOLE | YES | /dev/null storage engine (anything you write to it disappears) |
    | EXAMPLE | YES | Example storage engine |
    | ARCHIVE | YES | Archive storage engine |
    | CSV | YES | CSV storage engine |
    | ndbcluster | NO | Clustered, fault-tolerant, memory-based tables |
    | FEDERATED | YES | Federated MySQL storage engine |
    | MRG_MYISAM | YES | Collection of identical MyISAM tables |
    | ISAM | NO | Obsolete storage engine |
    +------------+---------+----------------------------------------------------------------+
    Notice under InnoDB - it shows YES in my example.

    This example shows it is off

    mysql> show engines;
    +------------+----------+----------------------------------------------------------------+
    | Engine | Support | Comment |
    +------------+----------+----------------------------------------------------------------+
    | MyISAM | DEFAULT | Default engine as of MySQL 3.23 with great performance |
    | MEMORY | YES | Hash based, stored in memory, useful for temporary tables |
    | InnoDB | DISABLED | Supports transactions, row-level locking, and foreign keys |
    | BerkeleyDB | NO | Supports transactions and page-level locking |
    | BLACKHOLE | YES | /dev/null storage engine (anything you write to it disappears) |
    | EXAMPLE | YES | Example storage engine |
    | ARCHIVE | YES | Archive storage engine |
    | CSV | YES | CSV storage engine |
    | ndbcluster | NO | Clustered, fault-tolerant, memory-based tables |
    | FEDERATED | YES | Federated MySQL storage engine |
    | MRG_MYISAM | YES | Collection of identical MyISAM tables |
    | ISAM | NO | Obsolete storage engine |
    +------------+----------+----------------------------------------------------------------+
    I hope that helps.



    Feel like your Cloud Provider's just weathering the storm? Hop Off the Cloud - The Weathers nicer over here.

  4. #19
    Member hostmedic's Avatar
    Join Date
    Apr 2003
    Location
    Ohio
    Posts
    556
    cPanel/Enkompass Access Level

    DataCenter Provider

    Red face Re: innoDB not enabled by default?

    If your innodb is still not working - but you have it enabled - this could also be due to a log file issue.

    FIRST STOP MYSQL BEFORE DOING THESE STEPS:

    Code:
    service mysql stop
    now go to the mysql directory

    Code:
    cd /var/lib/mysql
    MOVE THE ibdata1, ib_logfile0 and ib_logfile1 files to a .bak like this

    Code:
    mv ibdata1 ibdata1.bak
    mv ib_logfile0 ib_logfile0.bak 
    ib_logfile1 ib_logfile1.bak
    Now restart Mysql and be patient.
    Code:
    service mysql restart
    Now check for Innodb support as shown before:

    Code:
    mysql -u root -p
    enter password

    Now at the prompt mysql> type

    Code:
    show engines;

    Two important disk-based resources managed by the InnoDB storage engine are its tablespace data files and its log files. If you specify no InnoDB configuration options (as is the case with most MySQL installs and the default on cPanel), MySQL creates an auto-extending 10MB data file named ibdata1 and two 5MB log files named ib_logfile0 and ib_logfile1 in the MySQL data directory

    Innodb can Fail hard if those files have become corrupt.

    Best wishes in your trouble shooting.



    Feel like your Cloud Provider's just weathering the storm? Hop Off the Cloud - The Weathers nicer over here.

  5. #20
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: innoDB not enabled by default?

    Actually, it's a lot easier than logging into MySQL command line:

    Code:
    mysqladmin var | grep have_innodb
    This would return:

    Code:
    root@host [/home/cpfoo4]# mysqladmin var | grep have_innodb
    | have_innodb                             | YES        |
    If it is disabled, it would return:

    Code:
    root@host [/home/cpfoo4]# mysqladmin var | grep have_innodb
    | have_innodb                             | DISABLED |
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  6. #21
    Member hostmedic's Avatar
    Join Date
    Apr 2003
    Location
    Ohio
    Posts
    556
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default Re: innoDB not enabled by default?

    Awesome -and yup 100000% correct.
    Forgot all about that -


    A
    Quote Originally Posted by cPanelTristan View Post
    Actually, it's a lot easier than logging into MySQL command line:

    Code:
    mysqladmin var | grep have_innodb
    This would return:

    Code:
    root@host [/home/cpfoo4]# mysqladmin var | grep have_innodb
    | have_innodb                             | YES        |
    If it is disabled, it would return:

    Code:
    root@host [/home/cpfoo4]# mysqladmin var | grep have_innodb
    | have_innodb                             | DISABLED |



    Feel like your Cloud Provider's just weathering the storm? Hop Off the Cloud - The Weathers nicer over here.

Similar Threads & Tags
Similar threads

  1. InnoDB: Have you moved InnoDB .ibd files - Error
    By sunyl in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 05-06-2011, 01:28 PM
  2. Replies: 4
    Last Post: 10-10-2010, 02:55 PM
  3. Replies: 4
    Last Post: 10-10-2010, 02:55 PM
  4. MIME/HTML enabled in Neomail/Horde/Squirrelmail by default?
    By Shiekron2 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-18-2003, 07:07 AM
  5. subdomains enabled by default
    By rich2 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-14-2002, 11:54 PM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube