core icon indicating copy to clipboard operation
core copied to clipboard

installer drops trailing character from MySQL dbpassword

Open skpy opened this issue 13 years ago • 5 comments

While trying to install ownCloud 5.0.10 using MySQL and nginx, I kept getting the message

MDB2 Error: connect failed: _doConnect: [Error message: unable to establish a connection] [Native code: 0]

I confirmed at the command line that the username and password I was supplying were correct with mysql -u owncloud -p. That worked fine.

Looking in the config/config.php file I saw that the value for the dbpassword written there was missing the last character. In my case, the last character was an exclamation point (!).

Manually editing the config.php to supply the missing character allowed me to proceed with the installation. I did not do any additional testing to see whether this is limited to exclamation points specifically, or punctuation generally.

skpy avatar Aug 13 '13 19:08 skpy

@bantu @ringmaster can you please have a look? THX

DeepDiver1975 avatar Aug 13 '13 22:08 DeepDiver1975

I am unable to reproduce this. It wrote 'dbpassword' => '*** removed for security reasons', to the config file for me.

bantu avatar Aug 13 '13 22:08 bantu

I tested it on Apache with "password!", and that worked fine. I'll have to spin up an Nginx to see if that's part of the issue, but I don't see any way in code that ownCloud could have dropped a character, unless maybe there's something in the Nginx config that did something to the values in $_POST. Or maybe there's something else in the password ("escaped" values that get unescaped during processing - lots of percents, ampersands, and dollar signs?) that made it eat the exclamation point? The full password used might be helpful.

ringmaster avatar Aug 14 '13 02:08 ringmaster

Let's call this a false alarm. A fresh install on another host using the same password worked fine.

skpy avatar Aug 14 '13 02:08 skpy

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Aug 02 '19 15:08 lock[bot]