1)By default mysql does not support remote access...
2) you will have to specify this in the server first, (ofcourse you will not be able to do this from a remote machine!!! unless you have remote desktop access)
3)To enable access from a client machine called nile, do the following after starting mysqld (or mysqld_safe) on the server, named delaware:
% mysql -u root -p
mysql> use mysql;
mysql> grant all privileges on *.* to usrname1@'%'
identified by 'test' with grant option;
mysql> insert into host values('nile', '%', 'Y', 'Y', 'Y', 'Y', 'Y',
'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y');
mysql> exit
Hope this helps you!
The user name, usrname1, and the password, test, should be replaced by the real value.
One can then run mysql on nile as follows:
% mysql --host=delaware --user=usrname1 -ptest
To restrict access to a user from a specific host, change '%' in the grant command to a valid hostname or ip address.
Main Topics
Browse All Topics





by: mensuckPosted on 2005-09-30 at 11:34:39ID: 14994878
#1
mysqladmin -u [user] -p password 'newpassword'
(you will be prompted for current password, hit enter if it's blank)
#2
mysql -u root -h hostname.domain.com -p password 'newpassword'
(you will be prompted for current password, hit enter if it's blank)
ms!