101 Replies
Project ID:
N/A
Anyone here?
are you using a Railway database?
No
then somehow your database is rejecting you access, confirm that your password and username are right
I check everything is ok
mariadb by default only allows localhost connections.
try to follow this tutorial
Why app crashed
that's not enough info, send me your full logs
your sql client is trying to connect to localhost, make sure that you've set your database host
Yes
I set database host
did you use env variable?
Yes
as you see, you're using localhost
Yes
Local host is wrong?
yes, your database is in another IP
and please change your database credentials, you can't leak that to everybody
Now I put cPanel IP address?
and also, use environment variables to store your database credentials
I will change it later
?
well i don't know, is cPanel telling you your database IP?
I think this is ip address
Dear what I do app not crashed and it's start
it may be, never used cPanel.
by the way, any reason to just not use Railway's database?
Now what I correct that my website is published?
well, you'll need to change this accordingly to your database credentials
Now I add MySQL database through railway
Right?
if you can ditch your cPanel database, then yes it's better to use Railway's database
My SQL is correct?
yes, you can use MySQL
I upload everything correct
Then I don't know why app crashed?
did you upload the sql dump to Railway?
I want to upload my full website to railway
Please help me how to solve 'app crashed' issue?
im confused, did you migrated your database to Railway or you're still using the cPanel one?
cPanel
ok, so try this credentials
if it doesn't work, try to find it in your cPanel dashboard
can't help much because as I said, never used cPanel
Ok wait I migrated to railway
CODEMASTER
YouTube
How to Install daman Game | daman game ka installation kaise kare |...
How to Install daman Game | daman game ka installation kaise kare | How to install nodejs for daman
WhatsApp number π7087902758β
if you want to create your own Colour Prediction website then contact us we provide best script in cheap prices WhatsApp link :- 7087902758
How To Create Colour Prediction Game Website in Hindi. How To Download Colo...
He use cPanel his method to I upload but no work
He upload live and it's site Work
do you mind helping him here? @Fragly
need to work right now
I've never used cPanel either π
he doesn't need that
just guide him to setup a mariadb and connect that to their application
Oh Alright
Hi please help
*mysql
I already typed my guide out to use MariaDB and not MySQL π
oh well, MySQL will be easier to explain
Please now what I do?
I'm happy to π
To deploy MariaDB in your app
you'd want to follow these steps:
1. go to your project in Railway's dashboard
2. Right Click t add a new service
3. Click on
Database
4. Select MySQL
5. Click on Deploy
if you see that option
If you've followed these steps correctly, you'll see a MySQL
service in your app
now you'll want to connect to MySQL, we'll do this with Reference Variables
in your main app, go to the variable page and click on + New Variable
on the right, you'll see a v Add Reference
button, click on that
then click on MYSQLHOST
you'll want to repeat this for mysql user, database and password
After doing that, you'll have reference variables to all the authentication values required to connect to MySQL
Finally, you'll just want to connect to MySQL using these environment variables
If you've done all this correctly, you should now be able to connect to the MySQL database in your app
few caveats:
1. this uses public networking
I couldn't find any info on how to use a full connection string to createPool on MySQL but in the future you might want to look into how to use private networking for this
I changed these 3 things from variable page now ok, and I deploy
I can migrate to railway MySQL
oh yea you'd want to add the port variable too
3000?
it's not necasserily 3000
You'll want to do this for MYSQLPORT as wel
you're doing that in your
MySQL
service, you're supposed to do this on your main appAll. Variable I fill .env
Now? I upload website then it's work?
the screenshot you sent is a screenshot of your MySQL service
you were supposed to add these service variables to your website's service, not MySQL
if you added these variables on your MySQL service then you'll want to recreate your MySQL service since you basically destroyed the variables
I add on my website but it's not work
Server error show
App has been crashed
it doesn't look like you added anything in the screenshot you just sent
For errors like that, read this:
https://docs.railway.app/guides/fixing-common-errors
Make sure you followed this guide correctly
From what I understand, you added those variables in your MySQL service
if you did that, you'd want to recreate your MySQL service since you destroyed the variables
I changed it but it no change
It's still show railway
You're not supposed to change anything in the MySQL service
this is the third time I'm saying this
Now I can not change anything from here
App is Crashed always why?
Tell me solution of this
^
No suggestions
You're not supposed to change anything in your MySQL service, you're supposed to follow these steps in your main app, your website's service
this is the fourth time I've told you this
:SMH:
I can not change anything
You ask in above
Right + variable then click add reference I just followed it
Right + variable then click add reference I just followed it
Where are you trying to apply changes?
Deploy
Like what service are you trying to add changes to?
I just add these 4 service I just edited these 4 service to connect
You're not supposed to add these variables to the MySQL service
You're supposed to add these variables in your website's service
this is the fifth time I'm telling you this
We're going in circles here, please read what I am telling you
Sorry sir now I understand
I will correct and tell it to you
Like I said here, since you changed the variables for your MySQL service, you'll need to recreate the service
I recreate
so you deleted the service, and then made a new service?
also make sure you followed all the steps here https://discord.com/channels/713503345364697088/1204738443905728533/1204787906959638609
including the last one
Ok
Sir same error
Command not found
/bin/bash: line 1: docker-entrypoint.sh: command not found
But bash name no files available in my website source code
Please help
@Fragly @ThallesComH ?
Anyone here??
@Brody ??
#πο½readme #5
Ok as you wish