Nakiami / mellivora

Mellivora is a CTF engine written in PHP
GNU General Public License v3.0
441 stars 170 forks source link

Caught exception connecting to database #82

Open triawan opened 7 years ago

triawan commented 7 years ago

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 commented 7 years ago

Maybe your database configuration not configured properly?

ndembezeh commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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

SYANiDE- commented 6 years ago

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 commented 6 years ago

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 commented 5 years ago

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.