Connect to local MySQL Workbench DB via sqlplus - mysql

I'm trying to learn PL/SQL language. On my mac laptop (macOS Monterey, M1) I have the following set up:
MySQL Workbench running a test database
and SQL*Plus installed in the terminal
My question: How do I connect to my local MySQL Workbench database via sqlplus?
I imagine I need a user/pass and to specify localhost 3306 as the connection endpoint... but where do I find these things, how do I set them up? I've looked at Oracle documentation but haven't found the answer.
Any help would be greatly appreciated! This is study for a SQL interview. Thanks in advance.
-Sebastian

Either you need to use MySQL Workbench as a client for MySQL Server, or else you need to use SQL*Plus as a client for Oracle Server. These are two different brands of database (although they are both owned by Oracle Corporation) and the clients cannot connect to each other's database.
Your statement of connecting to MySQL Workbench using SQL*Plus makes no sense anyway, since both of these are clients.

Related

How did mysql workbench get my old database?

I created database using mysql from phpmyadmin for some practice purposes. Now I've just downloaded and set up mysql workbench and right after I saw my old database which I created in phpmyadmin and that makes me wonder how did workbench get it?
Both phpMyAdmin and MySQL Workbench are administration/client tools. It is used to connect MySQL Service running on your machine / remote machine called server. (usually on port 3306).
When you create databases or store data which is stored under a folder represented as datadir which is owned by the MySQL service.
how did workbench get it?
Database is managed by MySQL Service, like a phpMyAdmin, Workbench also another client, connecting to same MySQL Service.
Similarly, you can use any other MySQL Client to connect with the same MySQL service running on your machine.
Additionally, you can refer my blog to understand more about MySQL Architecture.

How can i grant access to mySQL database to other computer within my house?

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/

Can I connect to mysql server with only mysql client installed?

This is very novice question I am very new to working with Databases, primarily an user of R, also comfortable Bash Unix Shell. I have a MySQL server 5.7 installed on windows 10 laptop and have been using Workbench for accessing or populating databases.
I want to have a good command of in-database analytics and had a few broad questions.
Its easy to access MySQL database on my laptop from R on my laptop that was simple. Also if I go to windows command line and type mysql -u -root -p from the directory MySQL/MySQL Server 5.7/bin in can start typing SQL commands at mysql prompt.
My question is, regarding accessing my MySQL databases in my laptop or any other mysql server. From a remote Linux session on a VM, or after starting R in that Linux session. I linux can I install a mysql client alone on a Linux VM and access MySQL databases or do I have to install MySQL server as well.
My premonition was that I wouldn't have to install the server but I was experimenting in Windows Linux Subsystem(WLS) (which is a source of confusion itself since WLS is a new thing and I didn't want to generalize what I learn from experimenting in WLS to working from a remote Linux machine.
Then there is another question of working off a Linux in Virtual Box installed on my windows.
To simplify my question I would like at least know be certain about does one need to install mysql server to and have it running to access any mysql database on another machine or will it suffice to have a mysql client installed?
Your input will be greatly appreciated, as I have been only successful in trying to use my WLS and read several post/blogs I would like to be clear about how MySQL works before continuing my experiments.
Ideally I would like to query data from any bash shell that I can find or any R session.
Thanks
No, you do not need to install mysql server on a computer to be able to access another mysql server remotely. The client will suffice.

mysql database that can be accessed over a vpn?

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.

Client to access and edit a MySQL database remotely

So I have been given the host, username, and login information for a MySQL Database. I need a client that I can use to log in to the Database remotely and create/update tables and edit all the data.
I found the MySQL Administrator client provided by them, but it seems you can do everything BUT edit the actual data with it.
Is there anything like this?
Would I be able to use SQL Server Express (or something similar), to connect to a remote server online and do all of this?
with the mysql administrator, you normally get the mysql query browser, which sounds like what you want :)
If you're using OS X or Linux, you can install the mysql client and connect via the console. There are plenty of GUI clients for OS X and Windows (SqlYOG is a good, free one that I've used), just search Google for "mysql client ".
MySQL Workbench works great for me. It allows me to connect to some remotely hosted databases that I have via ssh.
I highly recommend SqlYog Community Edition which inkedmn also mentioned. It handles database administration and query building, and similar enough to SQL Server Management Studio that you won't feel completely lost.