Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-13-2002, 10:46 PM
|
#1
|
Member
Registered: Aug 2002
Posts: 189
Rep:
|
How do I add a host user password to mysql server?
I have mysql server running on PC1 and need to access it from PC 2. When I try mysql -h 192.168.1.252 -u mythtv from PC 2 I get:
Error 1130 Host '192.168.1.1' is not allowed to connect to this MySQL server
Thanks
|
|
|
12-14-2002, 01:47 AM
|
#2
|
Senior Member
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467
Rep:
|
You need to grant the privileges like that:
GRANT Select, Insert, Update ON database.* TO 'mythtv'@'192.168.1.1' IDENTIFIED BY 'password';
What privileges you give that user and on what database is in your hands of course ...
|
|
|
12-14-2002, 11:56 PM
|
#3
|
Member
Registered: Aug 2002
Posts: 189
Original Poster
Rep:
|
I want to grant the user mythtv@192.168.1.1 read write access to the database named mythconverg on the mysql server on 192.168.1.252 using password mythtv. How do I do this?
I tried on the PC with the mysql server:
su
mysql mysql
msyql> grant all privileges on *.* to mythtv@192.168.1.1 identified by 'mythtv' with grant on;
mysql> exit
This seemed to work last night and I was able to access
the database. However it doesnt work this morning. I get an Error 2003: Cant connect to Mysql server on '192.168.1.252' (111) when I try to do a
user@localhost]mysql -h 192.168.1.252 -u mythtv
If i append a -p at the end of that, it prompts me for a password and then shows me the error. So apparently I am able to access the mysql server but authentication fails.
If i try to access locally on the mysql server, I can access. Any ideas?
|
|
|
12-16-2002, 09:57 AM
|
#4
|
Member
Registered: Dec 2000
Location: Indiana
Distribution: Red Hat 7.3/Mandrake 8.2/9.0
Posts: 154
Rep:
|
When it prompts you for the password aren you giving it the correct password?? Also, you may possibly need to add the user "mythtv@192.168.1.1" to the USER table in the MYSQL database. After this you should grant the privileges you want and then you need to issue the command "flush privileges" OR restart the mysql server for the changes to take effect.
You could also just add the user "mythtv@%" to allow that user to connect from ANY host. All of this information is in the mySQL documentation as well.
|
|
|
All times are GMT -5. The time now is 06:22 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|