mellivora icon indicating copy to clipboard operation
mellivora copied to clipboard

Caught exception connecting to database

Open triawan opened this issue 7 years ago • 7 comments

hi,.. i'm just finished install mellivora, but there is an error at image below :

caught connecting to database

i'm using ubuntu mate for raspberry pi 2. Version php, mysql, apache2 no problem. What i should do fix problem about " Caught exception connecting to database " Thanks for response

triawan avatar Mar 05 '17 05:03 triawan

Maybe your database configuration not configured properly?

ardinusawan avatar Mar 05 '17 09:03 ardinusawan

Hi,

Has there been any fix to this please? I have the same issue, i don't seem to have any database issue because i configured two boxes and one's working and the other is having this exception.

I'm using ubuntu 16.04

ndembezeh avatar Apr 04 '17 17:04 ndembezeh

If you're getting this error, you've most likely made some mistake in configuring the connection to the database. Have a look in your Apache logs for more information. They might be in /var/log/apache2/mellivora-error.log.

Nakiami avatar Apr 08 '17 12:04 Nakiami

hi. download all css then put it to ur local dir if you haven't internet connection. good luck!

Melvandito avatar May 08 '17 15:05 Melvandito

In my case, Arch+apache2+mariadb+php7: The specified error.log contained a message similar to: PDOException: could not find driver in mysql pdo

Ended up editing: /etc/php/php.ini

Changing line: ;extension=pdo_mysql

To: extension=pdo_mysql

Also cleared out the log at /var/log/httpd/mellivora error.log because it contained the DB creds as part of the error message.

hth, cheers

SYANiDE- avatar Jan 09 '18 17:01 SYANiDE-

Sorry for my english but, do you see if the pass of loggin to mysql is same pass in the create of database ?

i have this error because my pass when i created db was "" (empty)

PipeArd avatar Sep 17 '18 21:09 PipeArd

Hi, I also tried to install mellivora on a Rasperry PI (raspbian image) and had the same issue. The fix for this is quite simple. The driver for php mysql is not installed, so just install it with:

sudo apt install php7.0-mysql

After that, restart the web server with:

sudo /etc/init.d/apache2 restart

Everything works fine for me now.

xatru avatar Jan 18 '19 07:01 xatru