banner

[Rule] Rules  [Home] Main Forum  [Portal] Portal  
[Members] Member Listing  [Statistics] Statistics  [Search] Search  [Reading Room] Reading Room 
[Register] Register  
[Login] Loginhttp  | https  ]
 
Forum Index Thảo luận hệ điều hành Windows mysql remote connect  XML
  [Question]   mysql remote connect 15/07/2006 13:44:25 (+0700) | #1 | 6912
mainhu
Member

[Minus]    0    [Plus]
Joined: 13/07/2006 23:11:43
Messages: 31
Offline
[Profile] [PM]
chẳng biết post vào đâu nữa smilie

ở windows, đã install mysql. theo mặc định, mysql sẽ ko cho connect từ bên ngoài localhost. vậy làm sao enable tính năng này theo mặc định. Chứ mỗi lần add db, phải enable remote connect cho user manually, khổ quá smilie

có bác nào cho ý kiến, nhà em xin cám ơn smilie
[Up] [Print Copy]
  [Question]   Re: mysql remote connect 14/07/2007 21:39:21 (+0700) | #2 | 71171
[Avatar]
quanta
Moderator

Joined: 28/07/2006 14:44:21
Messages: 7265
Location: $ locate `whoami`
Offline
[Profile] [PM]
Bạn thử đoạn này xem:

Q12: How do I enable remote access to MySQL?
Follow the steps below:

1. Open a DOS command prompt on the Scrutinizer server.
2. Run the following command from the ~\SCRUTINIZER\mysql\bin directory:
Code:
mysql -u root --password=

3. A mysql> prompt should be displayed.
4. To create a remote user account with root privileges, run the following commands:
Code:
GRANT ALL PRIVILEGES ON *.* TO 'USERNAME'@'IP' IDENTIFIED BY 'PASSWORD';


'USERNAME' is the username to be created.
'IP' is the public IP address of the remote connection.
'PASSWORD' is the password to be assigned for this username.
(IP can be replaced with % to allow this user to logon from any host or IP)

Code:
mysql> FLUSH PRIVILEGES;
      mysql> exit;


 

hoặc: http://support.netfirms.com/article.php?id=694
Let's build on a great foundation!
[Up] [Print Copy]
  [Question]   mysql remote connect 14/07/2007 22:25:04 (+0700) | #3 | 71181
[Avatar]
qhoa83
Member

[Minus]    0    [Plus]
Joined: 08/01/2007 04:28:10
Messages: 149
Offline
[Profile] [PM] [Yahoo!]
Có thể chính xác là dòng command này : thay IP = % là cho phép all ip

Code:
GRANT ALL PRIVILEGES ON *.* TO 'USERNAME'@'%' IDENTIFIED BY 'PASSWORD';
[Up] [Print Copy]
[digg] [delicious] [google] [yahoo] [technorati] [reddit] [stumbleupon]
Go to: 
 Users currently in here 
1 Anonymous

Powered by JForum - Extended by HVAOnline
 hvaonline.net  |  hvaforum.net  |  hvazone.net  |  hvanews.net  |  vnhacker.org
1999 - 2013 © v2012|0504|218|