หน้าเว็บ

วันพุธที่ 20 กุมภาพันธ์ พ.ศ. 2556

How to Enable Connection Mysql from Remote Server


1. Open a DOS command prompt on the server.
2. Run the following command from the mysql\bin directory:
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:
GRANT ALL PRIVILEGES ON *.* TO 'USERNAME'@'IP' IDENTIFIED BY 'PASSWORD';

mysql> FLUSH PRIVILEGES;
mysql> exit;