how can we connect MYSQL with html - html

i want to connect my data base with html web side please tell me how can i connect the html website to MY SQL.

You need to use PHP and setup a Localhost webserver, something like Wamp or Xamp will do.
I personally use Wamp, you can make a Database in the PhpMyAdmin service provided with it.
To further setup and connect to your database, you can simply search on google for some more detailed steps regarding to database connections.
but using a local webserver and php should get you up and running.

You need to use backend script/service to achieve the goal. You cant make connection directly. In between database and frontend (your html pages) there is backend.
to achieve your goal you can use php, node js which has n number of tutorials available.
Your question is getting minus points because it is incomplete and very basic.
Thanks

Related

Access HTML page hosted on different server using NodeJS

Brief :
I have a static HTML/JS/CSS website hosted on a server called A. (I have access to it.)
And I have NodeJS server running on server B. Now I want to apply the Authentication mechanism using PassportJS Local strategy.
Questions :
Is it possible to apply authentication using this way?
What are the ways that I can show an HTML page from the server A when the request is made on the NodeJS server?
Any advice/information/help is awesome.
Thanks in advance.

Can I access a mySQL DB created in phpMyAdmin with a web app that runs with the IDE's tomcat?

I hope I don't make it very confusing. So, for a school project I need to make a Spring MVC webapp that runs with a simple tomcat and connects to a DB. I downloaded xampp and made a DB with phpMyAdmin, but also run my app with an embedded tomcat server. I'm not exactly sure why but this seems problematic as I cannot access localhost. Is there a way to connect my app to the phpMyAdmin DB? If not, what would be an easy way to create and access a DB (I need only a really simple schema of one table)?? Any advice would help a ton!
If the web app is for long run i would suggest use of Hibernate ORM, you need to config and with few lines of code it will be live and runing, for just for trial or learning, H2 is a good options as #zlaval said in comments. And you can use any Database with Hibernate ORM, with one or two hours of research and studying you can achieve the task you searching for easily.
If you need to go for hibernate there there is some explained and easy steps to do so with hibernate ORM.
https://www.codejava.net/frameworks/hibernate/getting-started-with-hibernate-annotations

I can't enter to "localhost:8080/phpmyadmin"

Im trying to enter and it says This site can't be reached: connection refused... also, I made sure that the settings are right on the html files of the modules I am currently using which are apache and mysql. I've read through the web and someone said that I had to stop the apache module or mysql module, already did it, but no luck... any help with this problem?
As far as I know, you are no need to use the port number.
localhost/phpmyadmin
I hope this will work. If you are using a Linux version. please check this thread.
I had similar problem using easyphp with php, mysql and apache and solved it by running as administrator
What are you using as your local server? Have you restarted the services? Does it say your localhost is running properly?

Make appharbor work with existing mysql server

When I was working on my project (asp.net mvc 3) before uploading it, I needed to make it refer to an already existing mysql database. There was/is no option of moving or cloning that database, and I had to add a block of code to my C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config file for it to be made compatible.
How do I make it work on appharbor without moving my database?
You should be able to use mysqldump to move your data to a database running in the context of the AppHarbor MySQL add-on. Here's a guide.
If your current database is publicly accessible it should also work if you configure your AppHarbor app to use that. If you need to open a firewall, you can find AppHarbor app server IPs here.

How to access phpMyAdmin on remote server

For my websites I use Dreamhost. Dreamhost requires you to create a hostname (ex: mysql.mclindigital.com) that the database will reside on. For me it's simple, if I want to access phpMyAdmin, I simply navigate to mysql.mclindigital.com, and it enters into phpMyAdmin automatically.
Apparently Dreamhost is in the minority using this method, because most people seem to use "localhost". So, how do I access phpMyAdmin for these websites? Will I need to get their Web Panel login info to browse around for this info?
As an example, I had a past client and I had to go here: http://216.120.237.104:2082/3rdparty/phpMyAdmin/index.php to get into their phpMyAdmin. I never really understood what I was doing, but it just worked. Now I am in the same situation, but this time the client isn't as tech-savvy and is unable to give me the URL I need to go to.
Also, I should point out I am not 100% certain that they have phpMyAdmin installed. I do know they have a database however, because they are running a Wordpress Blog.
There is nothing magic or special about phpMyAdmin. It is just
a bunch of php scripts.
Some webhosts(Such as dreamhost) may install it as standard
similary to formmail and a bunch of other tools they may install.
Your problem is most likely that you client don't have
phpMyAdmin installed, and the easy solution(If you have ftp access)
is to go to http://www.phpmyadmin.net/home_page/index.php download
phpMyAdmin, configure it and then just upload it to their ftp server
your self. Then you can acces it similary to any other php script.