WAMP database accessible on 2 computers - database

I have a WAMP server running on my laptop and I want its database to be accessible from another laptop.
I have a VB 6.0 application which is using WAMP server (PHP_MYSQL database) and I want to let another PC or Lap Top to access the database.
How can I configure or program VB to access the database?

It is possible. We have multiple machines connecting to our wampserver databases Here is a checklist to get your started:
Have you granted external access to your MySQL user accounts?
Have you opened up your Windows firewall to allow incoming connections to your MySQL port?
Is your VB6 app set up to connect to MySQL?

Related

Using Power Desktop with an Azure VM and Enterprise Gateway

I am developing a report in PowerBI Desktop based on data hosted in an Azure SQL Server VM.
When publishing a report, I get the below error:
Publishing succeeded, but the published report cannot connect to the
data source because we were unable to find a gateway. Please install
and configure an enterprise gateway
I believe this is because the enterprise gateway is installed locally on my azure VM, however I'm accessing it from my desktop by going over the web and through the firewall. Therefore I believe the issue is that my pc acceses the machine at
mymachine.cloudapp.net
Whilst the enterprise gateway knows the machine as
netbios-name
Is there any way that I can upload a desktop report to powerBI web using this configuration? The other solution would be to get the machine and sql server to identify itself as "mymachine.cloudapp.net" so that I can use this as the name to connect to through the enterprise gateway, but I'm not sure how to do that (adding the alias to SQL Server isn't enough).
It's a bit hacky, but I've got a work around.
Open the server and edit your hosts file and add the following line:
127.0.0.1 mymachine.cloudapp.net
Make sure that mymachine.cloudapp.net has been configured in SQL Server as an alias.
In PowerBI, add a new enterprise gateway data source, this time, use mymachine.cloudapp.net to connect rather than netbios-name. You will need to use SQL Authentication to connect.
Obviously connecting PowerBI to an Azure VM in this way is not ideal, as it could potentially be unencrypted, but this works around the issue of different host names between PowerBI Desktop and Web.

WPF Application with SQL Server

I have developed a WPF application (Visual Studio 2012) with SQL SERVER (2008) database. This application going to run in multiple (above 5) systems via Internet.
So I have installed a SQL SERVER(2008) and WPF Application (.exe format) in First machine (is a server). And another four or more machines have only WPF Application (.exe) with internet. How to connect a database via internet to storing data and centralize the database.. it is possible??? please reply..
The broad brushstrokes of the method are:
Register a domain name.
Point the domain name at the internet IP address of your web server.
On SQL server, open up the firewall, turn on encryption. Open up ports on PC. Switch on security.
Now, you can connect to the remote SQL database over the internet.
If you are running SQL server on a home PC, you need a dynamic DNS server, see http://dyn.com/dns/.

How to Access Database hosted on localhost sql server 2008r2 by another computer in LAN

I created a windows form application in which I used an SQL server database.
It is working fine on my computer. Now I want to run this application on another computer that is connected with LAN with my computer.
The problem is both application must share the same database. I don't want to host my database online.
Please tell me how to access the same database from different computers by using LAN or another technique.
You will have to set up the SQL server to allow access from within the LAN.
You may also have to set up the firewall on your server to allow access to the SQL server port(s), usually 1433 1434 for MS SQL server.
Then point your application on the client machines to the server's IP address within your lan. Usually something like 192.168.xxx.xxx
Find the folder where your DB files are. SHARE that folder to 'Everyone' in network.
Turn*Off* Windows Firewall (this can be a problem sometimes when it's turned on).
Be sure that your second PC has the same ConnectionString (ServerName, ex. //PC-NAME/SQLEXPRESS) and is watching into your 'server' computer (PC with database on it).

Connect PhpMyAdmin to database in server

I have PhpMyAdmin and MySQL running in Windows 8.
I have installed them using Apache friends XAMPP v 3.1, so I didn’t do any configuration myself.
Currently if I go to localhost/phpmyadmin">http://localhost/phpmyadmin, then it automatically shows my local MySQL db and tables.
That I need is connect to remote server(it has MySQL) and runnig locally in my machine , for teh user of one app.
How can I connect to that server from phpmyadmin.
I’ve been trying to find if there any kind of connect panel in phpmyadmin, but no fruit yet.
For rather severe security reasons applicable servers to connect to are not configured at runtime but in the core configuration file config.inc.php. Otherwise a single hacked database account on an edge server could easily expose the entire network for brute force hacking, or tunneling into LAN-only unsecured databases.

Database Usage from Network Server

I am running desktop app that uses mdf file on local path.What if I want to do is that this mdf file should be placed over a network shared folder but network is using Domains and we need password to connect to that folder.Server is running windows Server and dont know if it has installed SQL Express or not.
Q
1-> do server needs to have SQL server Express.
2-> If I publish that project then use on multiple clients that may not have Visual Studio and sql server express but will have Dot Net framework. Will that Database Using application will work
1 - You don't have to use SQL Server Express, but its better than sharing a folder and use a mdf file over network using file sharing, and more trustable.
If your application will be used by one user at time only, you can share a folder on remote server, put the mdf file in there and give read/write access permission on share to the user running your desktop app.
If several users will run the app at the same time and access the database, it won't work because windows will probably lock the mdf file (and if not, your database will get corrupt). Then, you will have to use SQL Server Express and no folder sharing at all.
2 - It will work as long as your clients have SQL Compact Edition, that is installed with the .net framework by default, so you won't have any problems. By the way, if you are planning to all your customers using the same database, all the concerns I answered in question 1 applies here. If multiple users have to connect to the same db file at the same file, you'll have to: 1 - setup a SQL Server Express on client or 2 - publish your sql server express so it can be accessible from outside your network and configure your custumers desktop app to access this server.

Resources