tftdrd60
Posts: 11
Joined: Sun Sep 28, 2014 1:26 pm

how do I connect to MySql on Rpi from Windows?

Fri Oct 03, 2014 2:44 pm

Sorry to bug people in here again.
I am having problems understanding and finding out how to access the data on a database in MySQL on the RPi.
I know I have data on there and on the whole my project is coming on exceptionally well thanks to the responses in this group. Thank you everyone.

However I am stuck at the final hurdle getting windows xp/7/8 to view the data on the raspberry pi.
I do have VB.NET2010 on one of the pc's so maybe I just need to know how to connect instead of using another piece of software.... (actually this would be preferable)

I'm sort of demo-ing this tomorrow to my brother so it'd be nice to have it all ready for him.

Thanks in advance.

Terry

riklaunim
Posts: 265
Joined: Tue Apr 22, 2014 7:34 pm

Re: how do I connect to MySql on Rpi from Windows?

Fri Oct 03, 2014 4:48 pm

Host would be the IP address of Raspberry Pi. If you still can't connect check mysql server settings and change it so that not only localhost can connect to it.

User avatar
DougieLawson
Posts: 39124
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: how do I connect to MySql on Rpi from Windows?

Fri Oct 03, 2014 6:32 pm

1. You need to update the bind-address in /etc/mysql/my.cnf.
2. You need to add an ID that can connect remotely - the default is local user only.
3. You need to be able to find your RPi on the network (using a fixed IP is best, using avahi-daemon makes it easy).
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Return to “Beginners”