Results 1 to 6 of 6
  1. #1
    Join Date
    May 2010
    Location
    rules.php
    Posts
    18

    Need optimize server at ovh.com/us

    Today i have reset server but when finish reset server, i have error unable to connect to database, please help me fix it.
    Thanks!

    ERROR: PleskFatalException
    Unable to connect to database: mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: No such file or directory

    0: common_func.php3:153
    psaerror(string 'Unable to connect to database: mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: No such file or directory')
    1: auth.php3:116
    command: df -h

    [[email protected] ~]# df -h
    Filesystem Size Used Avail Use% Mounted on
    rootfs 20G 2.2G 17G 12% /
    /dev/root 20G 2.2G 17G 12% /
    none 7.8G 248K 7.8G 1% /dev
    /dev/md2 1.8T 1.8T 0 100% /var
    tmpfs 7.8G 0 7.8G 0% /dev/shm
    /dev/root 20G 2.2G 17G 12% /var/named/chroot/etc/named
    /dev/md2 1.8T 1.8T 0 100% /var/named/chroot/var/named
    /dev/root 20G 2.2G 17G 12% /var/named/chroot/etc/named.rfc1912.zones
    /dev/root 20G 2.2G 17G 12% /var/named/chroot/etc/rndc.key
    /dev/root 20G 2.2G 17G 12% /var/named/chroot/usr/lib64/bind
    /dev/root 20G 2.2G 17G 12% /var/named/chroot/etc/named.iscdlv.key
    /dev/root 20G 2.2G 17G 12% /var/named/chroot/etc/named.root.key
    [[email protected] ~]#
    and error:
    ERROR: Zend_Db_Adapter_Exception
    SQLSTATE[08004] [1040] Too many connections

    0: Abstract.php:144
    Zend_Db_Adapter_Pdo_Abstract->_connect()
    1: Mysql.php:109
    Zend_Db_Adapter_Pdo_Mysql->_connect()
    2: Abstract.php:459
    Zend_Db_Adapter_Abstract->query(string 'DESCRIBE `sessions`', array)
    3: Abstract.php:238
    Zend_Db_Adapter_Pdo_Abstract->query(string 'DESCRIBE `sessions`', array)
    4: Mysql.php:19
    Db_Adapter_Pdo_Mysql->query(string 'DESCRIBE `sessions`')
    5: Mysql.php:169
    Zend_Db_Adapter_Pdo_Mysql->describeTable(string 'sessions', NULL null)
    6: Abstract.php:835
    Zend_Db_Table_Abstract->_setupMetadata()
    7: Abstract.php:857
    Zend_Db_Table_Abstract->_getCols()
    8: Abstract.php:897
    Zend_Db_Table_Abstract->_setupPrimaryKey()
    9: DbTable.php:519
    Zend_Session_SaveHandler_DbTable->_getPrimary(string '5113477ca9cc0fefc9f120cd744f380c')
    10: DbTable.php:318
    Zend_Session_SaveHandler_DbTable->read(string '5113477ca9cc0fefc9f120cd744f380c')
    11: SaveHandler.php:27
    CommonPanel_Session_SaveHandler->read(string '5113477ca9cc0fefc9f120cd744f380c')
    12: :
    session_start()
    13: class.Session.php:152
    Session->Session()
    14: auth.php3:178
    I'm a newbie not a webmaster and can't optimize server (with me all setups is defaults)

    Please help me optimize server, i will send info ssh login server.
    Thanks!

  2. #2
    Join Date
    May 2013
    Location
    India
    Posts
    748
    Hi

    You need to clear some space in /var partition as it's usage has reached 100 percent.

    /dev/md2 1.8T 1.8T 0 100% /var

    After clearing some space restart mysql and everything should be fine after that.

    If you need assistance please contact us

  3. #3
    Join Date
    Mar 2004
    Location
    Odessa, Ukraine
    Posts
    605
    I can help you
    My contacts in profile

  4. #4
    Add me on skype I have experience in dealing with such issues
    Skype ID : ashshamre2008

  5. #5
    Join Date
    May 2012
    Location
    India
    Posts
    1,026

  6. #6
    Join Date
    Apr 2007
    Location
    US, UK, Europe, ME
    Posts
    258

Similar Threads

  1. how to optimize my server ?
    By ttgt in forum Hosting Security and Technology
    Replies: 9
    Last Post: 02-05-2010, 12:39 PM
  2. help needed about - how to optimize MySQL server on my Dedicated Server! details...
    By chessming in forum Hosting Security and Technology
    Replies: 6
    Last Post: 10-18-2006, 09:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •