I am using Electron to create an app, and wanted to login, and show data from some tables in a MySQL Database in my localhost, how can I make the connection with the Database?
PS: I am very new to Electron
Thank you for your help.
Related
I have a MySQL database setup on a live server and I'm trying to connect to to it in development using React. I've created a user and password and given access to the database. If i create a database.js file and run node database.js, it connects and I can see the data in the console no problem.
How do i get it so that once the app loads, i can use the useEffect hook to fetch the data from the MySQL database and use it in my app?
I have made a React+Node application with MySQL database. I'm using Heroku to deploy my application, and have done so successfully. However, I'm having problems with using my database on Heroku. Locally I'm using XAMPP and phpmyadmin for all database work.
In Heroku, I've used a clearDB add on to support MySQL and have gotten all necessary credentials in the format:
mysql://DB_USERNAME:DB_PASSWORD#BD_HOST/DB_DATABASE?reconnect=true
I've used MySQL Workbench and have created a database using the above supplied host name, username, password and have successfully connected the database to the app. But after a while i changed (on PhpMyadmin) the database structure and i deleted the connection from workbench panel. I tryied to make a new connection with the same Config Vars but the workbench send me an error of "Unknown Database nameOfDatabase".
There is something i missing? there is anything i have to do to delete the old connection for the new one to work?
thanks!
I imported a MySQL database (.sql file) to phpmyadmin on MAMP, so i can reach all tables and records on phpmyadmin UI via browser but I can not see this database on my terminal and other database applications. While I can see the databases that I created before but I cannot see that database which created on phpmyadmin. I have checked port number and other connection credentials too many times.
I have already searched this problem on web but couldn't find a working solution.
Any kind of help would be appreciated, thank you.
now I'm working on hybrid mobile application with SQLite. This application just only retrieve the data from database. The data come from MYSQL database, but I want to store the data into local storage which is SQLite so when the user don't have the internet, they can retrieve the data from local storage. So,is there a way to connect mysql db and sqlite? I have been following the tutorial from this site
but I do not know how to connect sqlite with mysql db. So,anyone can help me to solve my problem ?
You can connect using a API that give a response as a JSON and store and access those using ionic local storage
Or you can design a server side code using node js and connect to db
Im trying to connect MySQLWorkbench to a AWS Bitnami EC2 image. In order to do this I have to create a MySQL database on the machine image first but I cant do this as I dont know how to connect PHPmyadmin to the machine image. Please help, thanks.
PhpMyAdmin is a web application, you access it from your browser, typing something like this:
http://server_url/phpmyadmin
If, for example, the server is on your own machine use this:
http://localhost/phpmyadmin
then if a password is setted you have to do a login in order to access phpmyadmin's administration page, here you could create a new database
wikipedia on PhpMyAdmin