R
Railway13mo ago
gazhay

Cannot use "private" url for database - too long

When trying to migrate to v2 plugin, I am getting the folowing error sqlMessage: "Identifier name 'mysql://:**@mysql.railway.internal:3306/railway' is too long", Is there an actual guide to perform the migration that helps, all I have found just says "just put in this variable here adn that variable there" but doesn't actually tell you where to find any of these magic url variables, they don't appear in the usual places. [6a6c4123-f4c9-4c41-ba5f-c3115ddc1753]
3 Replies
Percy
Percy13mo ago
Project ID: 6a6c4123-f4c9-4c41-ba5f-c3115ddc1753
Brody
Brody13mo ago
what library are you using where you are told the url is too long? what a silly message as per this message https://discord.com/channels/713503345364697088/1170008031606624276/1171421883623804958 you are using the variables incorrectly, please read this docs page https://docs.railway.app/databases/mysql and this one https://docs.railway.app/develop/variables#reference-variables
gazhay
gazhayOP13mo ago
I was using the variables as supplied automagically by the railway system. You are however correct in that those are incorrect for access via something fairly normal like sequelize. In the end making the code spit out the automagic fully completed variables allowed me to find the variable values required and store them appropriately.
Want results from more Discord servers?
Add your server