OSError: mysql_config not found

Trying to deploy django project to railway this errors comes up. I tried to deploy a project without mysql works fine. But when it has a mysqlclient it doesn't work? Error message below
14 Replies
Percy
Percy2y ago
Project ID: d10c789e-156f-4f6e-9ea0-85bfd5c59dc1
Percy
Percy2y ago
Try adding an environment variable called NIXPACKS_PKGS set to mysql80. If that doesn't work, try creating a repo example and creating an issue on Nixpacks.
⚠️ experimental feature
Brody
Brody2y ago
do you have a nixpacks.toml or dockerfile in your repo?
novicedev
novicedevOP2y ago
d10c789e-156f-4f6e-9ea0-85bfd5c59dc1 None Didn't saw those on the videos or blogs i watch and read Initializing now i just added NIXPACKS_PKGS I added the variable along with the postgres db
Brody
Brody2y ago
this is an error related to mysql, why mention postgre?
novicedev
novicedevOP2y ago
yea i just mention it because the suggested variable is along with the postgres variables of the project cause the new project came with postgress
Brody
Brody2y ago
postgre is better imo less resource intensive than mysql
novicedev
novicedevOP2y ago
got an error
novicedev
novicedevOP2y ago
Brody
Brody2y ago
why are your screenshots so blurry
Brody
Brody2y ago
try with postgre instead
novicedev
novicedevOP2y ago
Sorry about that
Brody
Brody2y ago
no worries
Want results from more Discord servers?
Add your server