I'm working on a Text-based RPG game using C++ in Visual Studio, where I want player account details and infomation to sit on a database, and I have previously been using Microsoft Azure to host a database. However there are a few pricing complications involved and since this is a small project and I'm learning on the way, I'm not sure about this.
I have 2 machines, my main PC and a Laptop, and I sometimes do some SQL practice on my laptop using MySQL Workbench, then I'll code on my main PC. Both of these machine use the same network, and so I want to ask:
If I set up a local database using MySQL Workbench on my laptop, will I be able to connect to it from my main PC? If so this will relieve a load of stress as I can then develop everything locally and then look to push it out to a larger scale in the future.
You should be able to connect to the MySQL instance on your laptop from your PC, but you might have to open up the port to new connections.
There are other posts on SO that might be helpful with the specific steps needed: Connect to MySQL Database on Local Network
Might be easiest to just run the same version of MySQL Workbench on both machines.
Related
I am not much familiar about this but have some queries.
I have installed MySQL database in a desktop and using it for creating a web application in my workplace. After the app gets created, I want all the computers to have an access to the database in the desktop I have used as it has all the DB tables.
One more thing I want to know that as the application needs application server to run it, is there any way I can achieve it in this scenario.
Thanks.
My case:
one laptop with XAMPP and I like to work outside without internet connection to not be distracted for increased productivity
one desktop with XAMPP which is always connected
htdocs folder is synchronized with Dropbox - this works great
What I want to achieve:
To have some kind of automatic synchronization/replication of mysql database across these two devices and when I work on laptop offline and I came online I want to all changes in MySQL on my laptop to be replicated to MySQL database on my desktop
Solutions which I tried:
use central MySQL server to which I could connect from both of them - this is very good and easy solution, but I couldn't work offline without internet connection on my laptop
I was using dropbox for synchronization of mysql data folder - many of users are saying that it works flawlessly, but I ended with corrupted data
Is there any other way?
SymmetricDS can synchronize MySQL databases in an environment with expected network disconnects.
A free headless version can be found at symmetricds.org.
I'm afraid I have been stuck on this one for a couple days now.
I've worked with databases before (normally using php and a mysql server) but I'm new to visual studio and I just can't seem to find much info on what kind of server you need to connect to (and how).
I guess the first part of my question would be: Can the server running the database be a remotely hosted "online" mysql server or does it have to be installed on your machine (for example like you can install apache)?
The easiest option for me would probably be to connect to my existing mysql server of my online website, but how?
I have sql server management studio installed but am not sure what to enter as the server name etc in the dialog box that shows up.
I do know my mysql server details and all, but just have no idea how where and how or even if I can connect it directly to my visual studio project.
I have looked several times on google but till now I have only been able to find videos and tutorials showing how to create a new database - which assume you are already connected to some sort of server.
Also, if you do use a locally hosted database server then wouldn't you have to port it to a different (online) database once the website goes live?
Thank you for your time!
Yes, the database can be remotely hosted, I'have this working on my local machine with a remote MsSql database. Make sure the remote database server accepts connections from your IP.
I'm pretty sure the MsSql Server Management Studio is only for MsSql, not MySql. The server name in my case is the IP for the remote MsSql database server, further you need the login and password for your database. But if you use your remote MySql, you don't need this tool.
I have no experience with MySql, but it must be possible to use the database in your Visual Studio project with the correct "connectionstring". The connectionstring contains the type of the database, where it is located, login and pasword, etc. You can find the syntax of you connectionstring here: www.connectionstrings.com/mysql/
I am trying to design a database application for my small business. I've created a number of form driven MS Access databases for use before but would like to create a permanent solution in something more advanced & common.
I was thinking of using mySQL for the database and would then program a C# or VB application to be used in Windows. I do not want or need a web based version at this time but the migration to VB.net in the far future may be something I'll look into.
I know I can use a MS Access backend for my windows application without having to install MS Office on any or all the computers the program will be run for.
But here is my question. Is it necessary to install mySQL Server on the PC hosting the database, on all the PCs accessing the database or can I just use the database file as the backend and Visual Studio will have all the necessary tools I need to access it?
If I have to install the server I may just stick with the MS Access database as the needs for an excessive amount of database storage won't ever be an issue.
You'd need to install MySQL server on the Server hosting the database. The clients would then connect via the network. You will however need a driver to access the MySQL-Server with VB.NET on the client machines. A simple DLL-File might be enough, though.
If you are looking for a file-based database solution have a look at SQLite. But you will have to watch out for concurrency issues here.
I am connection to a LAMP Server trough PuTTY.
I have no idea if there is a GUI available so I'm doing this trough the CLI. The problem now is that I need certain fields from the database and I have no idea how the database looks since the lack of documentation.
How should I approach this. In the database there are 148 tables. Should I just go trough every table one at a time? Is there a smart way?
Thanks.
You could always install PHPMyAdmin, but if you don't have access to do so, you can try MySQL Workbench. This installs on your computer, and you just put in your server info and connect
There's plenty of GUI tools available for MySQL, some that you normally install on the server and others that you run on your desktop, here's a short list:
MySQL Workbench - Official mysql gui tool with really nice features (especially coming to db design)
PHPMyAdmin - web based interface, can be installed on the server and reached through a web interface.
HeidiSQL (free, windows) - desktop app
SQLYog (lot's of features, costs money) - desktop app
Sequel Pro (free, slim and good for macosx) - desktop app
You can also use the mysql-query browser for connect database.
Download link for window use : ->
http://downloads.mysql.com/archives/query/