ThijsFeryn / autoinstallmagento

Auto installation script for Magento
0 stars 2 forks source link

cannot connect to database #5

Open jensbonde opened 9 years ago

jensbonde commented 9 years ago

Great script! ( Using MAMP ) so I changed path for sample installation to /Applications/MAMP/Library/bin/mysql -h $DBHOST -u $DBUSER -p$DBPASS $DBNAME < data.sql and it connects and sets table fine in database but The installer stops in terminal with cannot connect to database. Perhaps I must add the path in more places but can't figure out how?

( I could always do the graphical install from webbrowser but thats not as nice as it should be to get the whole installation from script)

BR Jörgen.

ThijsFeryn commented 9 years ago

Hi @jensbonde

Can you give me some more details? I'd like to know the exact error message and if there's a stack trace, I'd like to get that too.

It's a matter of detecting if the error comes from the MySQL connection in the bash script or if it occurs within the Magento installer script that is written in PHP.

Can you also give me some more information about the PHP installation you have on your Mac? How are you connecting and with which host are you doing it?

Thanks Thijs

jensbonde commented 9 years ago

Hi Thijs

Including the edited script (adjusted for latest magento 1.9.1.0) ( comment out downloading because I’m on adsl and also comment out removing installation files because I’m testing and testing….. :-) ( Also tried Database hostname: localhost:8889 )

just before script breaks i get

x magento-sample-data-1.9.1.0/skin/frontend/rwd/default/images/demo-logo.png x magento-sample-data-1.9.1.0/magento_sample_data_for_1.9.1.0.sql mv: rename magento-sample-data-1.9.1.0/media/customer to magento/media/customer: Directory not empty mv: rename magento-sample-data-1.9.1.0/media/dhl to magento/media/dhl: Directory not empty mv: rename magento-sample-data-1.9.1.0/media/downloadable to magento/media/downloadable: Directory not empty mv: rename magento-sample-data-1.9.1.0/media/xmlconnect to magento/media/xmlconnect: Directory not empty

FAILED ERROR: Database connection error.

( 127.0.0.1:8888/t3/index.php after break gives the graphical installation of magento which works with sample data )

In script mv magento-sample-data-1.9.1.0/media/* magento/media/ gives mv: rename magento-sample-data-1.9.1.0/media/customer to magento/media/customer: Directory not empty mv: rename magento-sample-data-1.9.1.0/media/dhl to magento/media/dhl: Directory not empty mv: rename magento-sample-data-1.9.1.0/media/downloadable to magento/media/downloadable: Directory not empty mv: rename magento-sample-data-1.9.1.0/media/xmlconnect to magento/media/xmlconnect: Directory not empty

tried replacing this with ditto -V magento-sample-data-1.9.1.0/media/* magento/media/ and I think its just overwriting existing files but I still get

FAILED ERROR: Database connection error.

The t3 database is full with sample data so I think there is no problem with the script in the first sentence

MAMP is running php version 5.6.2 In terminal PHP Version => 5.5.14 php -i gives as included file php_i.rtf

BR jensbonde

On 13 Jan 2015, at 15:11, Thijs Feryn <notifications@github.com mailto:notifications@github.com> wrote:

Hi @jensbonde https://github.com/jensbonde Can you give me some more details? I'd like to know the exact error message and if there's a stack trace, I'd like to get that too.

It's a matter of detecting if the error comes from the MySQL connection in the bash script or if it occurs within the Magento installer script that is written in PHP.

Can you also give me some more information about the PHP installation you have on your Mac? How are you connecting and with which host are you doing it?

Thanks Thijs

— Reply to this email directly or view it on GitHub https://github.com/ThijsFeryn/autoinstallmagento/issues/5#issuecomment-69748861.