Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-29, 01:10:32

Author Topic: could not open database connection.  (Read 15515 times)

0 Members and 1 Guest are viewing this topic.

Offline onemanarmy

  • Valuable Member
  • *
  • Posts: 128
  • Karma: +0/-0
    • View Profile
could not open database connection.
« on: 2013-08-15, 02:12:00 »
Hello,
I am gettinig could not open database connection suddenly

A. Kloxo-MR: 6.5.0.f-2013031828

B. OS: CentOS release 5.9 (Final) i686

C. Apps:
   1. MySQL: mysql-5.0.95-5.el5_9
   2. PHP: php53u-5.3.27-1.ius.el5
   3. Httpd: httpd-2.2.25-1.el5
   4. Lighttpd: --uninstalled--
   5. Nginx: nginx-1.5.2-1.el5
   6. Qmail: qmail-toaster-1.03-1.3.27.mr.el5
      - with: courier-imap-toaster-4.1.2-1.3.14.mr.el5
   7. Dns: bind-9.3.6-20.P1.el5_8.6

D. Php-type (for Httpd/proxy): mod_php_ruid2

E. Memory:
                total       used       free     shared    buffers     cached
   Mem:         12288       1368      10919          0          0          0
   -/+ buffers/cache:       1368      10919
   Swap:            0          0          0
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: could not open database connection.
« Reply #1 on: 2013-08-15, 02:24:32 »
Not able access to panel or?. More specific please.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline onemanarmy

  • Valuable Member
  • *
  • Posts: 128
  • Karma: +0/-0
    • View Profile
Re: could not open database connection.
« Reply #2 on: 2013-08-15, 02:26:00 »
yes kloxo panel gives could not open database connection but sometimes it opens then suddenly could not open database connection.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline onemanarmy

  • Valuable Member
  • *
  • Posts: 128
  • Karma: +0/-0
    • View Profile
Re: could not open database connection.
« Reply #3 on: 2013-08-15, 02:34:46 »
now kloxo panel is not even opening showing could not open database connection
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: could not open database connection.
« Reply #4 on: 2013-08-15, 02:35:04 »
Go to 'MySQL Password Reset' and then mysql root password.

Or it's maybe your /etc/my.cnf still using 'default. Try using '/usr/share/mysql/my-large.cnf' content to /etc/my.cnf. Backup /etc/my.cnf before change content.

Restart services with 'sh /script/restart-all' after change content.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline onemanarmy

  • Valuable Member
  • *
  • Posts: 128
  • Karma: +0/-0
    • View Profile
Re: could not open database connection.
« Reply #5 on: 2013-08-15, 02:38:04 »
done still showing same error
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: could not open database connection.
« Reply #6 on: 2013-08-15, 02:44:35 »
If not able access to panel, try 'sh /script/reset-mysql-root-password YOURPASSWORDHERE'.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline onemanarmy

  • Valuable Member
  • *
  • Posts: 128
  • Karma: +0/-0
    • View Profile
Re: could not open database connection.
« Reply #7 on: 2013-08-15, 02:48:38 »
sometimes i can access the panel but again i get could not open database connection error
i have changed the password still same error.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: could not open database connection.
« Reply #8 on: 2013-08-15, 02:54:59 »
Inform here your /etc/my.cnf.

BTW, your Kloxo-MR not latest update.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline onemanarmy

  • Valuable Member
  • *
  • Posts: 128
  • Karma: +0/-0
    • View Profile
Re: could not open database connection.
« Reply #9 on: 2013-08-15, 02:56:32 »
# Example MySQL config file for medium systems.
#
# This is for a system with little memory (32M - 64M) where MySQL plays
# an important part, or systems up to 128M where MySQL is used together with
# other programs (such as a web server)
#
# You can copy this file to
# /etc/my.cnf to set global options,
# mysql-data-dir/my.cnf to set server-specific options (in this
# installation this directory is /var/lib/mysql) or
# ~/.my.cnf to set user-specific options.
#
# In this file, you can use all long options that a program supports.
# If you want to know which options a program supports, run the program
# with the "--help" option.

# The following options will be passed to all MySQL clients
[client]
#password       = your_password
port            = 3306
socket          = /var/lib/mysql/mysql.sock

# Here follows entries for some specific programs

# The MySQL server
[mysqld]
port            = 3306
socket          = /var/lib/mysql/mysql.sock
skip-locking
key_buffer = 16M
max_allowed_packet = 1M
table_cache = 64
sort_buffer_size = 512K
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M

# Don't listen on a TCP/IP port at all. This can be a security enhancement,
# if all processes that need to connect to mysqld run on the same host.
# All interaction with mysqld must be made via Unix sockets or named pipes.
# Note that using this option without enabling named pipes on Windows
# (via the "enable-named-pipe" option) will render mysqld useless!
#
#skip-networking

# Disable Federated by default
skip-federated

# Replication Master Server (default)
# binary logging is required for replication
log-bin=mysql-bin

# required unique id between 1 and 2^32 - 1
# defaults to 1 if master-host is not set
# but will not function as a master if omitted
server-id       = 1

# Replication Slave (comment out master section to use this)
#
# To configure this host as a replication slave, you can choose between
# two methods :
#
# 1) Use the CHANGE MASTER TO command (fully described in our manual) -
#    the syntax is:
#
#    CHANGE MASTER TO MASTER_HOST=<host>, MASTER_PORT=<port>,
#    MASTER_USER=<user>, MASTER_PASSWORD=<password> ;
#
#    where you replace <host>, <user>, <password> by quoted strings and
#    <port> by the master's port number (3306 by default).
#
#    Example:
#
#    CHANGE MASTER TO MASTER_HOST='125.564.12.1', MASTER_PORT=3306,
#    MASTER_USER='joe', MASTER_PASSWORD='secret';
#
# OR
#
# 2) Set the variables below. However, in case you choose this method, then
#    start replication for the first time (even unsuccessfully, for example
#    if you mistyped the password in master-password and the slave fails to
#    connect), the slave will create a master.info file, and any later
#    change in this file to the variables' values below will be ignored and
#    overridden by the content of the master.info file, unless you shutdown
#    the slave server, delete master.info and restart the slaver server.
#    For that reason, you may want to leave the lines below untouched
#    (commented) and instead use CHANGE MASTER TO (see above)
#
# required unique id between 2 and 2^32 - 1
# (and different from the master)
# defaults to 2 if master-host is set
# but will not function as a slave if omitted
#server-id       = 2
#
# The replication master for this slave - required
#master-host     =   <hostname>
#
# The username the slave will use for authentication when connecting
# to the master - required
#master-user     =   <username>
#
# The password the slave will authenticate with when connecting to
# the master - required
#master-password =   <password>
#
# The port the master is listening on.
# optional - defaults to 3306
#master-port     =  <port>
#
# binary logging - not required for slaves, but recommended
#log-bin=mysql-bin

# Point the following paths to different dedicated disks
#tmpdir         = /tmp/
#log-update     = /path-to-dedicated-directory/hostname

# Uncomment the following if you are using BDB tables
#bdb_cache_size = 4M
#bdb_max_lock = 10000

# Uncomment the following if you are using InnoDB tables
#innodb_data_home_dir = /var/lib/mysql/
#innodb_data_file_path = ibdata1:10M:autoextend
#innodb_log_group_home_dir = /var/lib/mysql/
#innodb_log_arch_dir = /var/lib/mysql/
# You can set .._buffer_pool_size up to 50 - 80 %
# of RAM but beware of setting memory usage too high
#innodb_buffer_pool_size = 16M
#innodb_additional_mem_pool_size = 2M
# Set .._log_file_size to 25 % of buffer pool size
#innodb_log_file_size = 5M
#innodb_log_buffer_size = 8M
#innodb_flush_log_at_trx_commit = 1
#innodb_lock_wait_timeout = 50

[mysqldump]
quick
max_allowed_packet = 16M

[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates

[isamchk]
key_buffer = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M

[myisamchk]
key_buffer = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M

[mysqlhotcopy]
interactive-timeout
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline onemanarmy

  • Valuable Member
  • *
  • Posts: 128
  • Karma: +0/-0
    • View Profile
Re: could not open database connection.
« Reply #10 on: 2013-08-15, 02:57:04 »
Large was not working so i tried medium
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: could not open database connection.
« Reply #11 on: 2013-08-15, 03:02:20 »
If connection sometimes work and sometimes not work, it's possible something wrong with data itself.

Try using 'sh /script/mysql-optimize --select=repair'.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline onemanarmy

  • Valuable Member
  • *
  • Posts: 128
  • Karma: +0/-0
    • View Profile
Re: could not open database connection.
« Reply #12 on: 2013-08-15, 03:07:18 »
Code: [Select]
sh /script/mysql-optimize --select=repair
/script/mysql-optimize: line 27: repair: command not found
Mysql Check/Repair/Optimize
- Repairing database
afterlogic.a_users                                 OK
afterlogic.acal_appointments                       OK
afterlogic.acal_awm_fnbl_runs                      OK
afterlogic.acal_calendars                          OK
afterlogic.acal_cron_runs                          OK
afterlogic.acal_eventrepeats                       OK
afterlogic.acal_events                             OK
afterlogic.acal_exclusions                         OK
afterlogic.acal_publications                       OK
afterlogic.acal_reminders                          OK
afterlogic.acal_sharing                            OK
afterlogic.acal_users_data                         OK
afterlogic.adav_addressbooks                       OK
afterlogic.adav_cache                              OK
afterlogic.adav_calendarobjects                    OK
afterlogic.adav_calendars                          OK
afterlogic.adav_cards                              OK
afterlogic.adav_delegates                          OK
afterlogic.adav_groupmembers                       OK
afterlogic.adav_locks                              OK
afterlogic.adav_principals                         OK
afterlogic.adav_reminders                          OK
afterlogic.awm_accounts                            OK
afterlogic.awm_addr_book                           OK
afterlogic.awm_addr_groups                         OK
afterlogic.awm_addr_groups_contacts                OK
afterlogic.awm_channels                            OK
afterlogic.awm_columns                             OK
afterlogic.awm_domains                             OK
afterlogic.awm_fetchers                            OK
afterlogic.awm_filters                             OK
afterlogic.awm_folders                             OK
afterlogic.awm_folders_order                       OK
afterlogic.awm_folders_tree                        OK
afterlogic.awm_identities                          OK
afterlogic.awm_mailaliases                         OK
afterlogic.awm_mailforwards                        OK
afterlogic.awm_mailinglists                        OK
afterlogic.awm_messages                            OK
afterlogic.awm_messages_body                       OK
afterlogic.awm_reads                               OK
afterlogic.awm_senders                             OK
afterlogic.awm_settings                            OK
afterlogic.awm_system_folders                      OK
afterlogic.awm_tenants                             OK
kloxo.actionlog                                    OK
kloxo.addondomain                                  OK
kloxo.allowedip                                    OK
kloxo.anonftpipaddress                             OK
kloxo.aspnet                                       OK
kloxo.autoresponder                                OK
kloxo.auxiliary                                    OK
kloxo.blockedip                                    OK
kloxo.client                                       OK
kloxo.clienttemplate                               OK
kloxo.component                                    OK
kloxo.cron                                         OK
kloxo.customaction                                 OK
kloxo.custombutton                                 OK
kloxo.davuser                                      OK
kloxo.dbadmin                                      OK
kloxo.dirprotect                                   OK
kloxo.dns                                          OK
kloxo.dnstemplate                                  OK
kloxo.domain                                       OK
kloxo.domaindefault                                OK
kloxo.domainipaddress                              OK
kloxo.domaintemplate                               OK
kloxo.domaintraffic                                OK
kloxo.driver                                       OK
kloxo.firewall                                     OK
kloxo.ftpuser                                      OK
kloxo.general                                      OK
kloxo.genlist                                      OK
kloxo.hostdeny                                     OK
kloxo.installsoft                                  OK
kloxo.interface_template                           OK
kloxo.ipaddress                                    OK
kloxo.license                                      OK
kloxo.llog                                         OK
kloxo.loginattempt                                 OK
kloxo.lxbackup                                     OK
kloxo.lxguard                                      OK
kloxo.lxguardhit                                   OK
kloxo.lxguardwhitelist                             OK
kloxo.lxupdate                                     OK
kloxo.mailaccount                                  OK
kloxo.mailfilter                                   OK
kloxo.mailforward                                  OK
kloxo.mailinglist                                  OK
kloxo.mimetype                                     OK
kloxo.mmail                                        OK
kloxo.module                                       OK
kloxo.mssqldb                                      OK
kloxo.mssqldbuser                                  OK
kloxo.mysqldb                                      OK
kloxo.mysqldbuser                                  OK
kloxo.ndskshortcut                                 OK
kloxo.ndsktoolbar                                  OK
kloxo.notification                                 OK
kloxo.odbc                                         OK
kloxo.phpini                                       OK
kloxo.proxy                                        OK
kloxo.proxyacl                                     OK
kloxo.pserver                                      OK
kloxo.rdnsrange                                    OK
kloxo.resourceplan                                 OK
kloxo.reversedns                                   OK
kloxo.rubyrails                                    OK
kloxo.serverftp                                    OK
kloxo.servermail                                   OK
kloxo.serverspam                                   OK
kloxo.serverweb                                    OK
kloxo.service                                      OK
kloxo.skipbackup                                   OK
kloxo.smessage                                     OK
kloxo.sp_childspecialplay                          OK
kloxo.sp_lstclass                                  OK
kloxo.sp_specialplay                               OK
kloxo.spam                                         OK
kloxo.ssession                                     OK
kloxo.sshconfig                                    OK
kloxo.sslcert                                      OK
kloxo.sslipaddress                                 OK
kloxo.ticket                                       OK
kloxo.ticketconfig                                 OK
kloxo.tickethistory                                OK
kloxo.utmp                                         OK
kloxo.uuser                                        OK
kloxo.version                                      OK
kloxo.watchdog                                     OK
kloxo.web                                          OK
kloxo.webhandler                                   OK
kloxo.webmimetype                                  OK
mysql.columns_priv                                 OK
mysql.db                                           OK
mysql.func                                         OK
mysql.help_category                                OK
mysql.help_keyword                                 OK
mysql.help_relation                                OK
mysql.help_topic                                   OK
mysql.host                                         OK
mysql.proc                                         OK
mysql.procs_priv                                   OK
mysql.servers                                      OK
mysql.tables_priv                                  OK
mysql.time_zone                                    OK
mysql.time_zone_leap_second                        OK
mysql.time_zone_name                               OK
mysql.time_zone_transition                         OK
mysql.time_zone_transition_type                    OK
mysql.user                                         OK
roundcubemail.cache                                OK
roundcubemail.cache_index                          OK
roundcubemail.cache_messages                       OK
roundcubemail.cache_thread                         OK
roundcubemail.contactgroupmembers                  OK
roundcubemail.contactgroups                        OK
roundcubemail.contacts                             OK
roundcubemail.dictionary                           OK
roundcubemail.identities                           OK
roundcubemail.searches                             OK
roundcubemail.session                              OK
roundcubemail.system                               OK
roundcubemail.users                                OK
vpopmail.dir_control                               OK
vpopmail.lastauth                                  OK
vpopmail.valias                                    OK
vpopmail.vpopmail                                  OK
- MySQL Service restart

still same error.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline onemanarmy

  • Valuable Member
  • *
  • Posts: 128
  • Karma: +0/-0
    • View Profile
Re: could not open database connection.
« Reply #13 on: 2013-08-15, 04:06:06 »
mustafa?
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: could not open database connection.
« Reply #14 on: 2013-08-15, 15:57:27 »
It's maybe need update your mysql to the new one (say it to mariadb).

But, it's hard to me to tell how to update.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo

Page created in 0.06 seconds with 18 queries.

web stats analysis