Activity Stream
48,167 MEMBERS
6849 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1.     
    #1
    Member
    Website's:
    PornShareProject.org MidnightDesires.org

    Default Timeout error occurred trying to start MySQL Daemon.

    I download and used "mysqltuner" script and made some changes to my my.cnf and now i'm getting errors:

    ( http://www.howtoforge.com/tuning-mys...ith-mysqltuner )

    Timeout error occurred trying to start MySQL Daemon.

    I tired to put everything back to default, but after trying to restart mysql, i'm getting the same error message again.

    Any idea what i'm doing wrong?





    [root@server ~]# /etc/init.d/mysqld restart
    Stopping MySQL: [FAILED]
    Timeout error occurred trying to start MySQL Daemon.
    Starting MySQL: [FAILED]
    I'm running on:
    Metered Dedicated Servers - Dell 860 - Intel Xeon X3050 - 4GB MEM - 500GB HDD - 2TB BW


    Code: 
    [mysqld]
    datadir=/var/lib/mysql
    socket=/var/lib/mysql/mysql.sock
    max_connections = 1000 #600
    skip-locking
    key_buffer = 256M
    myisam_sort_buffer_size = 32M
    join_buffer_size = 1M
    read_buffer_size = 1M
    sort_buffer_size = 2M
    table_cache = 1024
    thread_cache_size = 16M
    interactive_timeout = 25
    wait_timeout = 1000
    connect_timeout = 10
    max_allowed_packet = 16M
    max_connect_errors = 10
    query_cache_limit = 1M
    query_cache_size = 32M
    query_cache_type = 1
    tmp_table_size > 16M
    max_heap_table_size > 16M
    #skip-innodb
    
    user=mysql
    local-infile=0
    # Default to using old password format for compatibility with mysql 3.x
    # clients (those using the mysqlclient10 compatibility package).
    old_passwords=1
    
    [mysqld_safe]
    log-error=/var/log/mysqld.log
    pid-file=/var/run/mysqld/mysqld.pid
    open_files_limit = 8192
    
    [isamchk]
    key_buffer = 256M
    sort_buffer = 256M
    read_buffer = 16M
    write_buffer = 16M
    
    [myisamchk]
    key_buffer = 256M
    sort_buffer = 256M
    read_buffer = 16M
    write_buffer = 16M
    [mysqlhotcopy]
    interactive-timeout
    
    
    skip-networking
    
    #log-slow-queries = /var/log/mysql-slow.log
    AlternativeWeb Reviewed by AlternativeWeb on . Timeout error occurred trying to start MySQL Daemon. I download and used "mysqltuner" script and made some changes to my my.cnf and now i'm getting errors: ( http://www.howtoforge.com/tuning-mysql-performance-with-mysqltuner ) Timeout error occurred trying to start MySQL Daemon. I tired to put everything back to default, but after trying to restart mysql, i'm getting the same error message again. Any idea what i'm doing wrong? Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Super Member
    Revert back to the original my.cnf and then tell me what changes you are making.

    So kiss me and smile for me, say that you'll wait for me <'3

  4.     
    #3
    Banned
    Website's:
    vaporhostn.com
    hahah

    Code: 
    tmp_table_size > 16M
    max_heap_table_size > 16M
    MySQL does not understand what the > is for so change it to = and it should be fine.

  5.     
    #4
    Member
    Website's:
    PornShareProject.org MidnightDesires.org
    Oops, I thought I reverted back to default.
    I must of missed that

    Thanks for helping me out guy, everything working again.

    ---------- Post added at 09:40 PM ---------- Previous post was at 09:29 PM ----------

    My server keeps swapping once a day. Do you have any idea what I can do to prevent it from happening again?

    My current my.cnf:

    Code: 
    [mysqld]
     datadir=/var/lib/mysql
     socket=/var/lib/mysql/mysql.sock
     max_connections = 1000 #600
     skip-locking
     key_buffer = 256M
     myisam_sort_buffer_size = 32M
     join_buffer_size = 1M
     read_buffer_size = 1M
     sort_buffer_size = 2M
     table_cache = 1024
     thread_cache_size = 16M
     interactive_timeout = 25
     wait_timeout = 1000
     connect_timeout = 10
     max_allowed_packet = 16M
     max_connect_errors = 10
     query_cache_limit = 1M
     query_cache_size = 32M
     query_cache_type = 1
     tmp_table_size = 16M
     max_heap_table_size = 16M
     #skip-innodb
     innodb_buffer_pool_size = 53M
     
     user=mysql
     local-infile=0
     # Default to using old password format for compatibility with mysql 3.x
     # clients (those using the mysqlclient10 compatibility package).
     old_passwords=1
     
     [mysqld_safe]
     log-error=/var/log/mysqld.log
     pid-file=/var/run/mysqld/mysqld.pid
     open_files_limit = 8192
     
     [isamchk]
     key_buffer = 256M
     sort_buffer = 256M
     read_buffer = 16M
     write_buffer = 16M
     
     [myisamchk]
     key_buffer = 256M
     sort_buffer = 256M
     read_buffer = 16M
     write_buffer = 16M
     [mysqlhotcopy]
     interactive-timeout
     
     skip-networking
     
     #log-slow-queries = /var/log/mysql-slow.log

  6.     
    #5
    Banned
    Website's:
    vaporhostn.com
    Swapping? Do you mean it keeps using swap space?

  7.     
    #6
    Member
    Website's:
    PornShareProject.org MidnightDesires.org
    Sorry, I'm not sure if I'm using the right lingo, but yes, swap space.

    The server keeps freezing up on me at least once a day this whole week.

  8.     
    #7
    Banned
    Website's:
    vaporhostn.com
    How does it freeze up on you?

    What OS do you currently use.

  9.     
    #8
    Member
    Website's:
    PornShareProject.org MidnightDesires.org
    I mean freezing up as in website won't load. When I login via SSH, and use the "top" command, I see the server is using all the swap space.

    I'm using "CentOS release 5.7 (Final)"

  10.     
    #9
    Banned
    Website's:
    vaporhostn.com
    Heres a dirty trick i usually use on all my servers i administrate to keep swap from being used.

    type in
    Code: 
    vi /etc/sysctl.conf
    add to the file sysctl.conf at the very bottom unless the vm.swappiness is defined then edit it
    Code: 
    vm.swappiness = 1
    USUALLY you want to restart for it to use the new settings, but you can run this command
    Code: 
    /sbin/sysctl -p
    That should update the system settings. The just to make sure try to restart mysql and such that uses swap.

    Also make sure you are not using all your ram or else that could also be why swap is being used.

  11.     
    #10
    Member
    Website's:
    PornShareProject.org MidnightDesires.org
    I hope this works because I was starting to get tired of waking up to a stalled server.
    I'll give that a try, Thanks James!

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. MySQL error
    By Funny in forum Web Development Area
    Replies: 6
    Last Post: 27th Oct 2012, 01:56 PM
  2. Database error-mysql error
    By saini in forum vBulletin
    Replies: 8
    Last Post: 8th Nov 2011, 06:54 AM
  3. MYSQL Error while Import via MYSQL Dumper (Error
    By desibreaker in forum Server Management
    Replies: 10
    Last Post: 5th Aug 2011, 07:26 PM
  4. kloxo mysql failed to stop or even start
    By accyuklad in forum Hosting Discussion
    Replies: 5
    Last Post: 29th Nov 2010, 06:07 PM
  5. MySQL error
    By mash-e1 in forum Webmaster Discussion
    Replies: 2
    Last Post: 28th Mar 2009, 12:12 PM

Tags for this Thread

BE SOCIAL