Windows client - MYSQL server on linux - mysql

I have a Winforms desktop app that need to read/write data from/to a MYSQL database. The MYSQL server is on a machine that runs on Linux OS. I need to know if a .NET connector is to be used or an ODBC connector?
Also, considering that I do not need remote access to MYSQL server, is a connector sufficient to access the server from the windows desktop? Do I need to do something on the server side? I've been looking around and getting mixed signals, some people said a web service is required while others said no.

I need to know if a .NET connector is to be used or an ODBC connector?
I never connected to MYSQL before, but i think you can use these data provider or, ODBC too.
Is a connector sufficient to access the server from the windows desktop?
Yes. A valid address to your server is all you need to access it, using data providers or ODBC. Of course, your database need to be up and running too.
Do I need to do something on the server side?
Just install your MYSQL database.
Maybe this link will help you.

Related

Replace mariadb with mysql on Plesk 12.5.30

I need to use standard mysql, in plesk it says everywhere that it is mysql but when I login to console it says mariadb.
I understand that it is very similar but this plesk will be hosting staging systems so they must use exactly the technology that the product servers use.
Is it possible to do it somehow using the web interface or do I have to manually install it from console?
As I see it's impossible because plesk-mysql-server package has explicit dependency for mariadb-server.
Yes, you can solve this with --force, but it means further troubles with plesk updates and upgrades.
If you need DB server for some application you can install it on separate server and register it as remote DB server in Tool&Settings > Database Servers.

Connecting to a database in Visual Studio

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/

Windows App with mySQL Backend

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.

mysql - Access tool for support team

I have mysql server running on amazon ec2 instance (running on ubuntu)
My support team (running on windows) needs access to this database so they can run some queries and get info straight from the database. Are there any tools in windows that offer such functionality
For querying, I personally use Toad for MySQL as it allows me to easily export to Excel. Unfortunately, it's .Net, so it has some very annoying bugs. My co-workers have spoken highly of Sql Yog and MySQL Workbench.
For data modeling, I really like MySQL Workbench. If money isn't an object, you might look at ErWin.
MySQL Workbench support remote conectivity to any MySQL Server, but you need to perform your server security with remote access in server side and DB side.
Some servers use phpMyAdmin as client (IE Windows compatible). You don't need remote access if you install it on your server but have to check security permissons to your DB side also.
I would suggest using Navicat if you are willing to pay for the licenses. It would be the most user friendly solution IMO. You can download free trials.
Take advantage of dbForge Studio for MySQL. There is free express edition.

Connect to MySQL from VBA without a driver

I installed xampp on my computer and I want another computer to access the mysql db in vba. But, they don't have admin right on their computer and cant get it, and they dont have mysql ado driver installed.
Is there a way to do it without this driver - can I use a portable driver or a windows standard lib?
At the moment all I can do is create a php page and use post data with a sql query, getting the result as xml or whatever, which is really not what I want.
Without the correct ODBC driver the app won't be connecting to the database directly. You'll have to do through some sort of middle tier that does have the driver installed.
Your solution here is to have the user call the help desk and have them install the MySQL drivers on his PC. If this is business critical it shouldn't be hard to get it approved. If not you'll need to redesign the app to fit within the IT policies.