₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,552 members, 8,422,531 topics. Date: Monday, 08 June 2026 at 12:31 PM

Toggle theme

Trying To Connect To Mysql Using Node. What Am I Doing Wrongly? - Programming - Nairaland

Nairaland ForumScience/TechnologyProgrammingTrying To Connect To Mysql Using Node. What Am I Doing Wrongly? (588 Views)

1 Reply (Go Down)

Trying To Connect To Mysql Using Node. What Am I Doing Wrongly? by Raylight2(op): 3:15pm On Sep 05, 2022
When I browse localhost:5500/createdb, I get the "cannot get" message

Re: Trying To Connect To Mysql Using Node. What Am I Doing Wrongly? by jbreezy: 7:49pm On Sep 05, 2022
This is absolutely wrong…haaaa…Are you a javascript developer at all??
Re: Trying To Connect To Mysql Using Node. What Am I Doing Wrongly? by jesmond3945: 8:16pm On Sep 05, 2022
Raylight2:
When I browse localhost:5500/createdb, I get the "cannot get" message
look at your folder structure
Re: Trying To Connect To Mysql Using Node. What Am I Doing Wrongly? by Raylight2(op): 10:32pm On Sep 05, 2022
jbreezy:
This is absolutely wrong…haaaa…Are you a javascript developer at all??
I am a learner. I wouldn't mind if you explain where I got it wrong
Re: Trying To Connect To Mysql Using Node. What Am I Doing Wrongly? by Raylight2(op): 10:32pm On Sep 05, 2022
jesmond3945:
look at your folder structure
well noted
Re: Trying To Connect To Mysql Using Node. What Am I Doing Wrongly? by muhammed50(m): 11:00pm On Sep 05, 2022
You ain't defining any route
You ain't supposed to use app.use()
You should use app.get() for get requests

You can use app.use() but you will need to specify the request type
Re: Trying To Connect To Mysql Using Node. What Am I Doing Wrongly? by jbreezy: 9:04am On Sep 06, 2022
muhammed50:
You ain't defining any route
You ain't supposed to use app.use()
You should use app.get() for get requests

You can use app.use() but you will need to specify the request type
And baba even tried to access a variable with const without declaring it. That’s why you just don’t jump to JS frameworks without being grounded in the basics. Op, go and learn Javascript well before picking up any other thing in JS
1 Reply

Create A Todo App With React, Node JS And Mysql Using Sequelize And PaginationCheck Out This Website I'm Designing Using Node JS And ExpressjsBuilding An Auto Sms App Using Node.234

ACS-Web-X Plugin: More Settings and Configuration - By Jawolusi OluwaseunDot Net Core Developer Job NeededOpenAI Boss: Meta Offering $100m Plus To Poach My Staff