简体   繁体   中英

Remote access to MySQL server in Windows

如何在Windows 7中使用MySQL Workbench,如何将我的MySQL Server绑定到我的IP地址而不是127.0.0.1,如何给不同主机的用户访问它?

From here :

  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';

It depends on hosting server on which the database is hosted eg by Hostgator hosting you may bind IPs to access the database remotely, you will have to provide access to user IPs in the hosting. For other like Go Daddy it depends on while creating the database, you will have to select for remote database option which generated a url likewise a host with which database can be accessed with SQLYog/Workbench. My Answer is you can't bound the IPs with database tools but only with hosting servers.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM