mysqli_real_connect() /private/tmp/wordpress/wp-includes/wp-db.php:1452 wpdb->db_connect() /private/tmp/wordpress/wp-includes/wp-db.php:649
![mamp update plugin download failed mamp update plugin download failed](https://gta5mod.net/wp-content/uploads/2020/07/Gang-House2.jpg)
wpdb->_construct() /private/tmp/wordpress/wp-includes/load.php:350 require_wp_db() /private/tmp/wordpress/wp-settings.php:79 require_once() /private/tmp/wordpress-tests-lib/includes/install.php:21 () /private/tmp/wordpress-tests-lib/includes/install.php:0 PHP Warning: mysqli_real_connect(): (HY000/2002): No such file or directory in /private/tmp/wordpress/wp-includes/wp-db.php on line 1452 vendor/wp-cli/wp-cli/bin/wp db tablesīut when I run phpunit I get this: $ phpunit
#Mamp update plugin download failed install
I ran the install script, and this works. that's why I couldn't connect! But now it is. I figured out that originally MySQL wasn't installed. WP-CLI root dir: /Applications/MAMP/htdocs/pipeline/wp-content/plugins/wp-github-pipeline/vendor/wp-cli/wp-cli Php.ini used: /Applications/MAMP/bin/php/php5.6.10/conf/php.ini PHP binary: /Applications/MAMP/bin/php/php5.6.10/bin/php
![mamp update plugin download failed mamp update plugin download failed](https://confluence.jetbrains.com/download/attachments/51959020/mamp_tutorial_02.png)
Does it matter if it uses the built-in OSX mysql or MAMP's MySQL? I'm not sure if that's relevant for the install script since I think it's creating a temporary DB to run the tests.
![mamp update plugin download failed mamp update plugin download failed](https://user-images.githubusercontent.com/23724310/43259715-7b073424-90d7-11e8-9d91-d5eef35964de.png)
My local Wordpress site is running with MAMP (which is working). You can check this by doing 'telnet localhost 3306' But then at the next step when I try to run bash bin/install-wp-tests.sh wordpress_test root '' localhost latest I get the following error: mysqladmin: connect to server at 'localhost' failedĮrror: 'Can't connect to MySQL server on 'localhost' (61)'Ĭheck that mysqld is running on localhost and that the port is 3306. I got wp scaffold plugin-tests my-plugin to run. I'm following the plugin test setup/install instructions.