Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
Is it possible to make an mySQL database on the web so that any person from any network can access it? For example if somebody in Europe downloads my program, it will still be able to connect to the mySQL database without problems.
Currently, I am using Connector J with a locally hosted mySQL database.
Edit: Basically I want to create an online mySQL database (not locally hosted) where anybody can download my program and the program from any internet connection can read and write the data from the server online.
Also are there any free online mySQL hosting services?
Edit:
For example, java games access data online from a database, but they are not on the same database. How can I achieve this? Are mySQL databases still the way to go?
It's difficult to understand your purpose but what I perceived from your question is maybe you are looking for some sort of cloud app service like Heroku. Take a look at their ClearDB add-on and see if that fulfills your need.
[This was supposed to be a comment but due to the lack of my Reputation points I have to submit it as an answer]
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
So, obviously I am less than a beginner at this, any help is appreciated.
We have an assignment for school, and the plan is to have a node-red project(on different computers) connect to a MySQL database hosted on a server.
I have downloaded the MySQL server package, the ODBC and Workbench. All that jazz. The thing is that I can't find a way to make my server hosted anywhere else than on my localhost. As you can tell, I have never even touched servers or anything like that before, so I'm probably just missing something.
As far as I know, a server is just a PC hosting data for other PCs to access, so what do I have to do to just make my PC a server? I need my colleagues/partners to be able to connect to the database from their local machine, but since it's hosted on localhost, that is not possible. I have not found a way to just "put it online". I realise putting stuff online without any knowledge of what you're doing is not something you should do, but I really feel like I'm out of options here.
As I said, any help would be appreciated.
why don't you host your database on a server online , try a free one for testing purposes, they are too many like :
https://remotemysql.com/
when you host your database you can access to it from any pc and also you can connect it with your PHP projects ex..
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I have a laravel website and a MySQL database for it.
My website has few users, and any user has a SQL database on his computer and that database has the same name, same password, and same configuration.
Now I want my user login to my website and via website information, make changes to his SQL database on his computer.
How can I do this?
How can I connect to any SQL database on user's computer by my website?
The direct answer to your question is that if you know the details of your users' machines, you can create connection strings for them in your config file, and use those connections to open MySQL sessions on the client machines - see https://laravel.com/docs/5.5/database, section "Using Multiple Database Connections".
This assumes all the machines are accessible from your server - presumably because they are on the same, local, non-internet-accessible network.
If your user's machines are accessible from the Internet, please do not do this - they will get hacked. It's a question of "when", not "if".
It's also a pretty horrible solution from an application architecture point of view - presumably the databases on the users' machines expect certain things about the database to be true, and your application would have to guarantee all those things. For instance, your application might expect "all orders have a valid customer; all customers have a valid country code". That's hard enough to guarantee on a single database, but on a distributed system, it's really hard.
It's much better to use MySQL replication for scenarios like this.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I'm quite new to mysql and in database management in general....
I've to solve this scenario:
In the development stage the web site has the database in the local machine and some tables are dedicated to contain information data used by the application ,during the development the records of that tables grow and when we move to production we want to update the production server with the new data...
Can someone advise the best practice to automate the update process from the local to the production database.
Thanks in advance
The road to doing this successfully is to have each database know how far it has migrated.
You should absolute use something like Liquibase or Flyway to do it. If you have a simple database environment these two will work. Both of these will track changes in version files that the database keep track of.
If you need more complexity, like in a sharded environment, you probably need to roll your own tool for this.
You should mention different .sql files for each environment like,
development.sql,
staging.sql,
production.sql
And you need to write shellscript to execute this script while deployment process.
Also, you need to maintain one constant to get current environment.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 7 years ago.
Improve this question
SQL server 2008R2 was installed on my personal laptop just for my working data, all the logins used were setup by our system admin which was connected too remotely from home. I need to use the same SQL Server for Doing some tutorials and adding my own data apart from my working data.
Is it possible to do that or do I need to install another SQL Server for my personal use?
You should be able to do this provided that the SQL logins that you were provided contain the necessary privileges. Some DBAs will restrict access to specific dbs or schemas, or lock down your ability to do much beyond running queries. Assuming this is not your case you should be good to go. Try creating a new database. If you are successful then my guess is that they gave you a privileged account and you should be in the clear.
If you really want to be safe then I suggest obtaining a copy of SQL Server Express
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm a newbie and never created a database. I want create a MySQL Database which should run on a Server (other people want use it too)
What are the essential requirements to create this in an easy way?
Are there any recommended free programs which help me to reach my goal ?
Thank you
1) Get an environment
A great VPS provider is Digital Ocean
Or go for shared hosting
2) Install MySQL service
Depending on your environment and OS
Shared hosting will probably have MySQL already installed and a nice GUI for you to use to set up your databases
If you choose Digital Ocean, look at their documentation: https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-centos-6
3) Set up a MySQL database and users
Plenty of materials on this
This should be it's own question once you've reached this stage, should you need help
I hope that will help you get further to your goal.
Referral links are included