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, 06:31:10

Author Topic: Could not open database connection.  (Read 3991 times)

0 Members and 1 Guest are viewing this topic.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Could not open database connection.
« on: 2013-08-12, 04:13:21 »
I got Could not open database connection. when trying to start Kloxo.

Code: [Select]
130812 00:11:41 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
130812  0:11:41 InnoDB: The InnoDB memory heap is disabled
130812  0:11:41 InnoDB: Mutexes and rw_locks use GCC atomic builtins
130812  0:11:41 InnoDB: Compressed tables use zlib 1.2.3
130812  0:11:41 InnoDB: CPU supports crc32 instructions
130812  0:11:41 InnoDB: Initializing buffer pool, size = 3.1G
130812  0:11:41 InnoDB: Completed initialization of buffer pool
130812  0:11:41 InnoDB: highest supported file format is Barracuda.
130812  0:11:41 InnoDB: 128 rollback segment(s) are active.
130812  0:11:41 InnoDB: 10.0.3-MariaDB started; log sequence number 81189317725
130812  0:11:41 [Note] Plugin 'FEEDBACK' is disabled.
130812  0:11:41 [Note] Server socket created on IP: '0.0.0.0'.
130812  0:11:41 [Note] Event Scheduler: Loaded 0 events
130812  0:11:41 [Note] /usr/sbin/mysqld: ready for connections.
Version: '10.0.3-MariaDB'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  MariaDB Server

Tried this:

Code: [Select]
/script/fix-program-mysql
grant all on kloxo.* to kloxo@localhost identified by 'c532d47361'

But does not help. What should I do ?
« 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-12, 13:40:00 »
How about 'service mysql restart' (using mysql instead mysqld because using MariaDB instead MySql).

Usually not 'match' related to '/etc/my.cnf'. Try replace '/etc/my.cnf.d/my.cnf' content with one of 'my*.cnf' inside '/usr/share/mysql'
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Could not open database connection.
« Reply #2 on: 2013-08-12, 13:41:34 »
If this error found after running 'sh /script/mysql-to-mariadb' need reboot.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Could not open database connection.
« Reply #3 on: 2013-08-12, 17:35:26 »
It's missing mysqlclient18:

** Found 10 pre-existing rpmdb problem(s), 'yum check' output follows:
courier-authlib-toaster-0.59.2-1.3.12.mr.el6.x86_64 has missing requires of libmysqlclient.so.18()(64bit)
courier-authlib-toaster-0.59.2-1.3.12.mr.el6.x86_64 has missing requires of libmysqlclient.so.18(libmysqlclient_16)(64bit)
php-mysql-5.4.17-2.el6.remi.x86_64 has missing requires of libmysqlclient.so.18()(64bit)
php-mysql-5.4.17-2.el6.remi.x86_64 has missing requires of libmysqlclient.so.18(libmysqlclient_16)(64bit)
php-mysql-5.4.17-2.el6.remi.x86_64 has missing requires of libmysqlclient.so.18(libmysqlclient_18)(64bit)
qmail-toaster-1.03-1.3.27.mr.el6.x86_64 has missing requires of libmysqlclient.so.18()(64bit)
qmail-toaster-1.03-1.3.27.mr.el6.x86_64 has missing requires of libmysqlclient.so.18(libmysqlclient_16)(64bit)
vpopmail-toaster-5.4.33-1.4.3.mr.el6.x86_64 has missing requires of libmysqlclient.so.18()(64bit)
vpopmail-toaster-5.4.33-1.4.3.mr.el6.x86_64 has missing requires of libmysqlclient.so.18(libmysqlclient_16)(64bit)
vpopmail-toaster-5.4.33-1.4.3.mr.el6.x86_64 has missing requires of mysql >= ('0', '5.0.22', None)
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Could not open database connection.
« Reply #4 on: 2013-08-12, 17:54:21 »
Rebooted and installed mysqlclient18 still:

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 #5 on: 2013-08-12, 19:08:45 »
It's maybe still using 'old' kloxo-mr.repo.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Could not open database connection.
« Reply #6 on: 2013-08-12, 19:21:28 »
I've restored /usr/local/lxlabs/kloxo from backup and it started working.

I'm in a process of moving my machines from CentOS 5.9 to 6.4 that's why it's a very long process ;)
« Last Edit: 1970-01-01, 01:00:00 by Guest »

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo
Click Here

Page created in 0.031 seconds with 19 queries.

web stats analysis