Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Package 'mysql-client' has no installation candidate

 

Followed this Article

image: php:7.2-fpm

pipelines:
default:
- step:
script:
- apt-get update && apt-get install -qy git curl libmcrypt-dev mysql-client
- yes | pecl install mcrypt-1.0.1
- docker-php-ext-install pdo_mysql
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- composer install
- ln -f -s .env.pipelines .env
- php artisan migrate
- php artisan serve &
- sleep 5
- ./vendor/bin/phpunit
- curl -vk http://localhost:8000
services:
- mysql

definitions:
services:
mysql:
image: mysql:5.7
environment:
MYSQL_DATABASE: 'homestead'
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
MYSQL_USER: 'homestead'
MYSQL_PASSWORD: 'secret'

 

And getting this exception, any idea?

Package 'mysql-client' has no installation candidate

1 answer

1 accepted

11 votes
Answer accepted

Hi Sebastian,

Try 

- apt-get update && apt-get install -y git curl libmcrypt-dev default-mysql-client

 It worked for me.

I was having a similar issue.. 

changing mysql-client to default-mysql-client helped solve it..

 

Thank you Dan.

Cheers.

Thank you! It works for 5.7

Sweet! That worked!

Fine, but why is the Laravel pipeline documentation still suggesting the wrong command? 

See 

https://confluence.atlassian.com/bitbucket/laravel-with-bitbucket-pipelines-913473967.html

@Julian Haluska you can use "Provide feedback about this article" at the bottom of the page to report it.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,792 views 10 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you