Missed Team ’24? Catch up on announcements here.

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

Package 'mysql-client' has no installation candidate

Sebastian Fix July 14, 2019

 

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

13 votes
Answer accepted
Dan Trif
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 16, 2019

Hi Sebastian,

Try 

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

 It worked for me.

etvviral July 21, 2019

I was having a similar issue.. 

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

 

Thank you Dan.

Cheers.

Tarasovych
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 6, 2019

Thank you! It works for 5.7

nosnibor89
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 6, 2019

Sweet! That worked!

Julian Haluska
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 16, 2020

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

Radek Antoniuk
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 16, 2020

@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
AUG Leaders

Atlassian Community Events