MySQL Forums
Forum List  »  Newbie

Re: MySQL remote access
Posted by: Rick James
Date: July 20, 2014 09:09AM

I prefer the 1-liner for giving access:
GRANT ALL PRIVILEGES ON mydatabase.* TO 'myname'@'localhost' IDENTIFIED BY 'mypwd';
Where 'localhost' could, instead, be an IP address or hostname ('mysite.com') or certain wild cards.

Note that it is better (necessary?) for the machines in your network to have "static IPs".

Further comments on GRANT:
http://forums.mysql.com/read.php?10,562182,562356

Test it via
mysql -u root -h host.name.or.IP -p

There is probably no need to use any Port other than the default 3306.

Mixing MySQL and MSAccess -- sounds like a nightmare. I don't have any insight into such.

The connection string in C++ needs to give the hostname or IP address of the server (instead of localhost or 127.0.0.1).

Options: ReplyQuote


Subject
Written By
Posted
July 19, 2014 03:20AM
July 20, 2014 05:16AM
Re: MySQL remote access
July 20, 2014 09:09AM
July 22, 2014 02:13AM
July 22, 2014 11:15AM
July 22, 2014 09:23AM
July 23, 2014 04:05AM
July 20, 2014 11:49AM
July 20, 2014 10:42PM
July 20, 2014 11:27PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.