am installed mysqlserver on windows(xp) another system as server....i want to access mysql from (i.e create table) client machine.client machine does't have mysql..and installed all tools..how can i connect from client..
Here's a list of Mysql tools, http://dev.mysql.com/downloads/
If it is a pure windows system then use Putty to connect to remote client.
After that navigate to the mysql server directory.
YOu can then use the above mentioned commands to start,stop mysql server/ add tables etc..
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/
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.
Is it possible to create a local database on my home-computer for MYSQL workbench?
This server is only for my own use. Not to the outside community.
Download XAMPP on your machine and install it. (Windows)
After successful installation, you will be able to see an icon on your toolbar.
Click on it and start Apache, MySQL and if anything you need.
Open browser, type : localhost/phpmyadmmin
This will give you an GUI to manage databases locally on your machine. XAMPP basically provides you local server.
If this is what you are looking for, after creating a database in MySQL from your local machine, then that you could access the database through MySQL workbench as a local instance. It asks you to authenticate based on your MySQL conf though. Just the normal way!
You can download WAMP (Apache, Mysql, PHP) server on Windows.
Then add new connection in workbench.
host:127.0.0.1
username:root
password:<Empty>
any ide how to connect to my local mysql wamp server from another computer? Not in lan. For e.g. connect to 81.182.127.107, or see the phpmyadmin using 81.182.127.107phpmyadmin?
There are two ways to connect to a mysql server:
direct connection, eg. via database software or from your source code
via a local installed user interface, usually phpmyadmin which is a local hosted website.
mysql is bound to the local addresses by default. To change open the my.conf, and comment the bind-address: 127.0.0.1 like this:
#bind-address: 127.0.0.1
This will allow direct access to the mysql server from outside.
If you want to use phpmyadmin, you also need a webserver, which is apache by default at WAMP. There in the root web dir, phpmyadmin should be already installed, if not you need to install and configure it.
After this, http://ip-from-pc/phpmyadmin should bring you the user interface to your local mysql server.
My aim is to create some simple tables in MySQL via a GUI similar to SQL Server Management Studio. In order to do this I found and installed MySQL Workbench.
I am following this tutorial:
http://dev.mysql.com/doc/workbench/en/wb-getting-started-tutorial-admin.html
but on step 5 I get an error message saying cannot connect to MySQL server.
Am I supposed to have something else installed before I can use MySQL Workbench? I have assumed Workbench includes everything I need....
You will need to install MySQL yourself. You can download it individually or using a tool like WAMPserver which makes the process of installing and configuring ridiculously easy.
You will need a server. SO you can goto start->mysql folder->mysql Installer.
After that a Mysql Installer form will open. Click on ADD. You will see a list of
products. Select Server(x86 or x64) based on your machine and follow instructions
provided.Once you have downloaded, set admin password. Now you can create your instance in workbench. If server is not running, run services.msc and start MySQL
service.