View Issue Details

IDProjectCategoryView StatusLast Update
0021705mantisbtupgradepublic2016-09-30 14:40
ReporterSAE-IT Assigned Todregad  
PriorityhighSeveritymajorReproducibilityalways
Status closedResolutionno change required 
Product Version1.3.1 
Summary0021705: APPLICATION ERROR #400 after upgrading from 1.2.19
Description

I upgraded following the available instructions here https://www.mantisbt.org/docs/master-1.3.x/en-US/Admin_Guide/html-desktop/#admin.install.upgrade

Initially I got a couple errors from /admin/check/index.php but got fixed (mbstring missing and g_salt unconfigured)

Now I am keep getting this error:

Database connection failed. Error received from database was 0001045: Access denied for user 'mantis'@'localhost' (using password: YES).

I can login to mysql by using this username and the adequate password. When trying the /admin/install.php the usernames and password that appear are correct.

Additional Information

Ubuntu Xenial 16.04
PHP 7.0.8
Mysql 5.7.12
Μantis 1.3.1

TagsNo tags attached.

Activities

dregad

dregad

2016-09-21 03:45

developer   ~0054049

SAE-IT,

Is Mantis located on the same server as the database ?
Suggested reading https://dev.mysql.com/doc/refman/5.7/en/problems-connecting.html

This is not a bug or feature request for MantisBT (you are asking for help on how to configure the system). I am therefore resolving this issue as "no change required".

Please use the forums, the mantisbt-help mailing list or IRC to get support on customizing and using MantisBT (refer to http://www.mantisbt.org/support.php for links and further details).

SAE-IT

SAE-IT

2016-09-21 06:43

reporter   ~0054050

Thanks for your reply dregad.

The sql server is on the same machine as Mantis. As I wrote tough (in contrast with your suggested reading link) the mantis user is able to connect to mysql and issue the commands that he has granted.

dregad

dregad

2016-09-21 08:36

developer   ~0054051

the mantis user is able to connect to mysql

Based on the error message you're getting, it obviously is not...

How are you making your successful connection ? command-line ?

Check the output of

select user, host from mysql.user
, and compare that with how you've setup your db connectivity in config_inc.php.

Try to establish a connection from a simple PHP script with ADOdb[1] and run that from the same web server as your Mantis.

[1] http://adodb.org/dokuwiki/doku.php?id=v5:reference:connection:connect#usage

SAE-IT

SAE-IT

2016-09-21 09:06

reporter   ~0054053

yes the successful connection is with terminal.

I can connect with php scripts as well (such the one you provided).