MySQL 8.0 permissions issue VB.NET - mysql

I have been doing an update to a purchase app that I developed some time ago. One of the changes I've been doing is to replace the hard coded queries inside the program with MySQL functions.
The MySQL server is version 8.0 and its running in Ubuntu 18.04 server. I am aware there are a lot of bugs specially with permissions still going around in the Linux version of MySQL.
The problem I am facing now is that I can run the functions on MySQL Workbench but when trying to execute the function from VB.NET I always get a user permission error. I already give the user the permission just to execute those functions and I am using the same user in the app than in MySQL Workbench.
Does any one know a solution for this, or there is a special permission that I need to assign in order to execute functions from any other application besides MySQL Workbench?

Related

Can't Connect MYSQL server to VScode & General SQL installation issues

How do I install MySQL Workbench properly? Can't connect to the SQLTools extension in VSCode.I'm new to the database scene, and can't seem to grasp how to create a successful SQL server that I can use to manipulate data. But nothing I'm doing seems to work.
Should I use Gitbash to access the terminal? I tried using my password to make a new query but it wouldn't work on the workbench. I don't know how to start the SQL server in addition to not knowing how to properly change the profile for the Workbench from a previous account. A new developer, such as myself, would appreciate any insight!
So that's really simple just install the mysql community server installer using this link https://dev.mysql.com/downloads/mysql/
Make sure to select the server only in the setup during installation if you are going to be using VS code as the client to manipulate sql queries
Then once that is done copy the bin path location from the mysql file directory (which is usually in the program files on your \C: drive on your computer) to the environment variables on your computer so that you can access mysql from the command line
Once that is done you can initialise a database from the normal command line but first type mysql -u root -p to start mysql in the command line
Then download the sql tools extension on vs code and create the database that wish

Creating custom MySQL servers in VB.NET at runtime

I was wondering if it is possible to create custom MySQL servers in VB.NET while working in visual studio at runtime so that if the server already exists it connects and if it isn't there, the code creates the server. I have searched for this everywhere but couldn't find anything. I would appreciate it a lot if someone guides me to the right path.
You could certainly write some .net code to start a MySQL server on your Windows box when an attempt to connect fails. You simply get a cmd.exe console with administrator privileges and give the command net start mysql.
But MySQL must already be installed on the box for that to work.
You might investigate Sqlite. It provides SQL locally to a .net program, storing your tables in a file called whatever.db. It has very similar .net API access to MySQL's Connector/Net and SQL Server's connector. It's in a NuGet package.
I don't completely understand your "custom MySQL servers" requirement. Sqlite gives you a way to use SQL in your application without connecting to a shared server. That may do what you need.
MySQL does have a CREATE SERVER statement in its SQL dialect. The purpose of this statement is to create a connection to another, remote, MySQL server. With that connection you can use the FEDERATED storage engine to access tables in the remote server. Of course, there is no way to run this CREATE SERVER statement unless your program is already connected to a MySQL server.
With respect, your "task which states to create a server at runtime" doesn't make much sense. Is there more to this requirement? What workflow needs this step? Is it part of the installation of some application software on a new box?

Compatibility between VBA and MySQL on Excel for Windows and Mac

I'm coding an app in VBA which is linked to an Access Database. My app is already functional. I import the data from the Access DB in Excel sheets, and use it, classic isn't it.
As you may know, Access ins't available for MacOs, so I can't update or get any data from my Access DB when my VBA app runs on Mac.
I know that you I link MySQL with VBA using ADODB, replacing my Access DB by doing so.
My question is: if I have a MySQL DB on a Mac, and I want to pass it to a Windows computer, is it possible? Do I need to simply copy/past a database file?
Will there be any incompatibility in the files format between the 2 Os which could cause any problems?
My app will be used by several people who use both windows and Mac, and need to work on the latest updated database, so Access isn't a viable option.
Thanks!
MySQL is happy to run on both OS. So, as long as the end user is and has a running copy of MySQL, then I see little reason why the database file can't be transferred. You never opening or connecting to a file, but to that of MySQL server database. In fact, it don't matter if MySQL is running on a Linux server - windows or Mac clients can connect to such databases without issues.
So, the only real issue here is that you have to have MySQL database server up and running - and you have to have as such in all cases, since you not connecting to a file like MS-Access but are in fact making a socket tp/ip connection to a database server.
So you need more then just a transfer of the MySQL database file - you need MYSQL as as sytem/server running in all cases. But as far as I know, MySQL database files are compatible between different platforms running MySQL. The only common issue is that of having a running server instance of MySQL.

How to start up MySQL workbench and connection for beginners?

I need a quick and easy way to import MS Excel databases and query them with PL/SQL for a class assignment. So far I've tried downloading MySQL Workbench and SQL Developer based on my class recommendations. MySQL Workbench looks simpler so I'm trying to learn to use that.
I'm completely lost on how to get started. Is it required for me to connect to a SQL database server before importing data? If so, how do I create one? I'm working off of my laptop and again, this is just for class so I don't need anything fancy.
I apologize for the very basic questions, as I have just started with learning databases. I researched for 2+ hours trying to figure out what to do, as my class resources aren't helpful and I must not be googling correctly as I can't find answers. If it's helpful at all, I've been successfully working with MS Access for SQL queries, so I'm comfortable with the environment. Thanks in advance.
xampp is provides a control panel for start/stop the mysql server, you can download xampp from here. After installing xampp set the enviroment variable in your system for recognizing mysql commnad in your command prompt.
you can access mysql command line in your command prompt like this,
mysql -u root

Setup MySQL workbench with Xampp in Windows 8

I'm trying to get back into PHP and MySQL development since i've found out that MySQL now allows stored procedures. I work with these at work on an Oracle database and use PL/SQL developer to create them. I was looking for a similar sort of interface for MySQL and was pointed in the direction of MySQL workbench. I'm using Xampp as my test server setup and would like to link MySQL Workbench to MySQL on this server however I'm stuck at one of the stages in the installation. I'm trying to create a new server instance and have been successful as far as testing the database connection however on the next page it asks me to set the 'windows configuration parameters' for this machine and failes to discover a MySQL service. I have ensured that both the Apache server and MySQL services are running in Xampp but do not understand why a MySQL service cannot be found and is not being displayed. Has anyone else encountered this issue when trying to use MySQL Workbench and if so, how did you amanage to get it up and running? I'm using Windows 8 and don't know if this is the reason a service isn't being found. I apologise if this is a really simple question with a simple answer however I have only ever used PHPMyAdmin before which is relatively simple to setup.
I have found problems with the packaged *AMP systems. They don't always install things the way other applications expect. e.g. The MAMP system doesn't work well with Python. it's quite easy to install each of Apache, PHP and MySql on Windows (and two of them are already on the Mac and Linux)
If you use the standard MySql install you should have no trouble installing the Workbench, I've done it on both Windows and Mac.
I have found it a bit flakey at times, it won't connect to older server versions and tends to crash when running long scripts. It also doesn't have a great UI for queries, A good program like PLSQL Developer to TOAD would be nice.
The service detection is rather simple. It expects that the service contains "MySQL" in its name. This is planned to be improved later. For now rename your service to something like "MySQL Xampp".