I'm building a Next.js application that needs user authentication. I'm trying to set up a MySQL db in CPanel for that. I am currently mainly interested testing this locally on my laptop. In CPanel, I used the MySQL wizard, created a user, gave all permissions, then went to the PHPMyAdmin dashboard. Here I imported a .sql file, that adds a "user" table with two users. All this worked well.
My question is how could I connect the db to test this?
mysql -u your_username -p -h your_host -P your_port -D your_database
I am unsure how to find these values.
localhost
to thehost
value, as described here sidorares.github.io/node-mysql2/docs/examples/connections/…mysql -u your_username -p -h your_host -P your_port -D your_database
mysql -u .....
), unless you also have a VPN to the site where cPanel is running.