Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Caught exception connecting to database #82

Open
triawan opened this issue Mar 5, 2017 · 7 comments
Open

Caught exception connecting to database #82

triawan opened this issue Mar 5, 2017 · 7 comments
Labels

Comments

@triawan
Copy link

triawan commented Mar 5, 2017

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

@ardinusawan
Copy link

Maybe your database configuration not configured properly?

@ndembezeh
Copy link

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

@Nakiami
Copy link
Owner

Nakiami commented Apr 8, 2017

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.

@Melvandito
Copy link

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

@SYANiDE-
Copy link

SYANiDE- commented Jan 9, 2018

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

@PipeArd
Copy link

PipeArd commented Sep 17, 2018

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)

@xatru
Copy link

xatru commented Jan 18, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants