I have a vb.net program that uses mysql as its database. And it works when the computer has wampservr installed. But the program gets an unhandled exception error when the computer where its running does not have a wampserver. The only thing that is installed in it is the mysql connector net. How do I make it work. I just want the two programs to access the same mysql database.
I already opened port 20 by configuring firewall. Both in TCP and UDP. What do I do? Do I have to tweak the codes?
on the machine that you dont have wampserver installed, do you have MySql installed by itself?
If I understand your question correctly, sounds like its having trouble connecting to the database because its not there.
Related
I'm a beginner in SQL so i'm sorry if the question is too basic.
I just created a database in MySQL Workbench in my computer and i would like to be able to access and modify the database from another computer within my house. I read some solutions but they all require using some external product, is there a way and how can i do this by the MySQL Workbench GUI, or maybe other functionalities from MySQL?
I also installed MySQL community server on the other computer that i would like to connect my database to.
Thanks!
If it's a home network, and both of you are connected via same router, then you can connect to mysql server on the other device using http://ip_of_machine_running_mysql:3306.
ip_of_machine_running_mysql should be the ip of the machine running mysql server.
Worth to note that you need to allow remote connection to mysql if you haven't already done so when you were doing mysql installation.
The steps for enabling remote access differs for your os(windows, ubuntu, mac), but you can easily find tutorials and how to's for changing such configuration.
https://www.brightfunction.co.uk/connecting-to-mysql-server-across-a-local-windows-network/
https://www.techrepublic.com/article/how-to-set-up-mysql-for-remote-access-on-ubuntu-server-16-04/
Here is the situation, I have access to some servers and don't have the root privilege to install mysql-client using 'yum', so I'm wondering maybe I can find some binary tool downloaded directly from internet to connect to another mysql server. I googled it, but failed. Does anybody know where I can find such thing? or some other solutions to my question?
The standard mysql client command line utility can be used in any Linux machine to connect to a MySQL Server anywhere if you have connectivity to TCP port 3306.
From http://dev.mysql.com/downloads/mysql/, download MySQL Server, Linux, Generic, 64 bit (or 32 bit) TAR Archive. Un-tar it, and look for the program file called mysql in the directory bin/. That's the command line client. It doesn't need to be installed, just copy that file into your oath or run it from the current direcrory.
I have recently downloaded Wavemaker because I feel it best suites my needs, however when I try and connect to my database on a mysql server hosted with godaddy, I keep getting access denied. However I can connect using exactly the same loggin info for sql workbench and razorsql just to see if I had my credentials correct and I have no problem connecting using those other two tools, is it me or is wavemaker being a pain?
Did you remember to install the MySQL JDBC DRIVER?
If not you can get it from the MySQL site, or install it on your Linux machine using the appropriate install commands. I had the same problem and after installing the driver everything worked great.
I'm posting my WaveMaker MySQL connection info (the database properties file) in hopes it might help:
mafiamgr_warmturkeyDB.connectionUrl=jdbc\:mysql\://localhost\:3306/mafiamgr_warmturkey?useUnicode\=yes&characterEncoding\=UTF-8&zeroDateTimeBehavior\=convertToNull
mafiamgr_warmturkeyDB.tableFilter=.*
mafiamgr_warmturkeyDB.driverClassName=com.mysql.jdbc.Driver
mafiamgr_warmturkeyDB.username=topsecret_xref
mafiamgr_warmturkeyDB.password=568626f144a0c56862568626f14047568626f1412a43
mafiamgr_warmturkeyDB.reverseNamingStrategy=com.wavemaker.tools.data.reveng.DefaultRevengNamingStrategy
mafiamgr_warmturkeyDB.schemaFilter=.*
mafiamgr_warmturkeyDB.dialect=com.wavemaker.runtime.data.dialect.MySQLDialect
I'm having an issue on both a win7 development machine, and on a windows 2008 production server with connecting to a remote Suse Linux server to mysql over SSH. I've followed the very simple instructions here.
http://realprogrammers.com/how_to/set_up_an_ssh_tunnel_with_putty.html
only on the last step, i'm trying to use the odbc connector that I downloaded from here.
http://dev.mysql.com/downloads/connector/odbc/
trying both localhost:3306 and 127.0.0.1:3306 doesn't seem to make a difference. I CAN log into the linux server in putty over ssh, and use the command line from the terminal to connect to mysql. My issue is that I need the windows server to be able to connect and query data from the mysql instance on the linux server. When I attempt to connect from the odbc connector it immediately pops up an error that root#localhost is denied with password=YES. I've checked my user table in mysql and root is set to allow login from any host, including localhost. Anyone have any other suggestions for getting this to work? It's quite urgent as we need to plan for a data synchronization of several gigs by this Saturday. Thanks in advance for any help.
Okay, I figured this out... You have to run putty.exe as an administrator. Once I did that the connection worked just fine. Hopefully this saves someone a few hours of work down the road. Thanks to bfavaretto for his help.
I have 2 computers. Both with w7 as os. I have installed wampserver on one of them.
I have mysql database on wampserver.
Then I have made a vb.net program to connect to mysql database. I have put the program on both computers.
What I want to do is for those two programs to see the same database that is on one computer. For them to be able to add, delete, update that 1 database.
How do I do that? How do I network the mysql database? Do I also have to install wampserver on the other computer?
What do I do? Please enlighten me.
MySQL is a database management system which will respond to ODBC (and equivalent) connections. Get the name of your computer that is running the MySQL database, and go to http://www.connectionstrings.com/mysql to find an appropriate connection string to use in the System.Data.OleDBConnection connection string.