Connect MySQL on my host computer to my CentOS7 virtual Machine - mysql

I have CentOS Linux 7 on my virtual machine using VirtualBox. I have no GUI, it's just the Terminal. I have Microsoft SQL Server Management Studio on my host PC (Windows 10). I'm trying to connect it to my VM and I can't figure it out. I've looked at several different sources and I can't get it to connect. Can anyone offer any assistance?

Related

want to connect to mysql from parallel desktop

I wanna connect to mysql database which is on my Mac from parallel desktop(windows 11) ,but I can't. How can I connect to Mac IP from my parallel?
(I tried to install mysql workbench on parallel but it says "your processor is not adequate). So, I had to install database on Mac.I also tried bridged wifi and using localhost but it can't find the database.
I have a partial solution for you. I modified the MySQL Workbench installation to run on Mac ARM. I also use USB Webserver to run a MySQL database on Windows ARM. MAMP and WAMP don't seem to run on Windows with Parallels.
I too am trying to figure out how to access a database running on Mac from C# Windows Apps on Windows. Have not had success yet.
You can get the install files for Workbench on my github page.
https://github.com/shadsluiter/MySQLWorkbenchM1MacParallels

Setup MySQL replication with VMware client and host

I have a laptop running Windows 8.1 64bit. What i plan to do is to install mysql server. and then i would install Windows 7 32 bit on a VMWare on the same laptop and will also have mysql server plus bridged networking so it will have different ip with the host OS.
so basically i will have a laptop running windows 8.1 64 bit with mysql server installed. With a vmware running windows 7 32 bit which also have mysql server installed.
Next, i want to set up the mysql server on the windows 8.1 as a master and setup the mysql server on the vmware (running windows 7 32 bit) as a slave.
My question is, will this work? I don't want to start configuring because it will take a lot of time.
If it is not achievable, can somebody recommend me a way to demonstrate mysql replication using only a single laptop/computer
No problem. It will work. Make shure both sysem can ping each other (being in same subnet) But you should configure it only for demonstration. The other case it has no sence.

How to use a GUI tool to administer a SQLite database on a virtual machine

I know how to do this for MySQL.
I am using Mac OS X 10.7.5
I run VirtualBox with the guest OS as 12.10 Ubuntu Server edition.
Inside the Ubuntu, I installed mySQL and SQLite3.
MySQL runs on the usual 3306 port in the Ubuntu.
Using the port forwarding feature in VirtualBox, I port-forwarded port 3122 on the host OS(Lion) to the ssh port 22 on the guest OS(Ubuntu).
I run the software Sequel Pro on my Macbook which has a SSH access option.
See screenshot.
Using this method, I can administer the mySQL databases on the Ubuntu Server where I run my web application development.
How do I administer the SQLite3 databases in a similar way?
I have downloaded the SQLite3 Database Browser, but there is no SSH option as far as I can see.
Unless the app comes with SSH tunnelling capabilities you are out of luck. Still here are a few alternatives for you to try:
You can use a native app inside the VM. SQLite3 Database Browser is available for Ubuntu as well.
Since sqlite databases are basically files you could mount the VM as an SSH volume on your Mac and open the file with SQLite3 Database Browser.

MySQL Workbench connection to local network MAMP server

I have MAMP installed on my Macbook Pro retina 13, which is in the same network as my workstation Windows machine. I would like to have MySQL Workbench to communicate with my MAMP server (instead of installing WAMP on this workstation), but I have been getting the Failed to Connect to MySQL at 192.168.169.101:8888 with user root and Invalid for this platform protocol requested(MYSQL-PROTOCOL_SOCKET) error.
Could this be a firewall issue? I am sure I have the right IP address and correct port, but I cannot get my Windows machine to communicate with my MAMP server.
I had the wrong port number. I will be cognizant of that next time.

How do I enable connections to a MySQL database from a Virtual PC using SQL Developer

I've got a MySQL Database on my local machine (Windows 7).
My local machine hosts 2 VMWare virtual machines. One running windows xp and the other running Ubuntu.
I want to access the MySQL database on my local machine using SQLDeveloper on the windows XP virtual machine.
The Ubuntu machine is able to access the database from within a java app using url jdbc:mysql://Peter-PC:3306/accessodev and a user/pass
When I attempt to connect from the windows XP box use SQLDeveloper I get a message saying: Communications link failure. The driver has not received any packets from the server.
Both the Ubuntu and Windows XP machines fail to connect using telnet Peter-PC 3306. Both machines successfully resolve Peter-PC to the correct IP address.
The Win 7 Machine can telnet to itself using telnet Peter-PC 3306. The windows firewall is turned off on this machine.
Can anyone give me any tips on how I can get connectivity to the MySQL database from the WinXP machine using SQLDeveloper?
Edit: I'm using the driver from http://www.mysql.com/downloads/connector/j/
Thanks,
Peter
Probably stating the obvious here but have you granted permission to the virtual machines to connect to the MySQL server (grant all permissions on database.* to 'winxp'#'a.b.c.d' identified by 'passwordhere'; flush privileges;)? And on the XP machine, have you allowed the SQLDevloper app through the firewall? Might be worth running up Wireshark on the host machine to see exactly what's coming through to the host machine too