我在设置远程访问WAMP MYSQL数据库方面遇到了麻烦。
到my.ini我添加了:
bind-address=10.0.0.139
在MYSQL日志中,我得到了:
140423 11:12:46 [Note] Plugin 'FEDERATED' is disabled.
140423 11:12:46 InnoDB: The InnoDB memory heap is disabled
140423 11:12:46 InnoDB: Mutexes and rw_locks use Windows interlocked functions
140423 11:12:46 InnoDB: Compressed tables use zlib 1.2.3
140423 11:12:46 InnoDB: Initializing buffer pool, size = 128.0M
140423 11:12:46 InnoDB: Completed initialization of buffer pool
140423 11:12:46 InnoDB: highest supported file format is Barracuda.
140423 11:12:46 InnoDB: Waiting for the background threads to start
140423 11:12:47 InnoDB: 1.1.8 started; log sequence number 8515141
140423 11:12:48 [Note] Server hostname (bind-address): '10.0.0.139'; port: 3306
140423 11:12:48 [Note] - '10.0.0.139' resolves to '10.0.0.139';
140423 11:12:48 [Note] Server socket created on IP: '10.0.0.139'.
140423 11:12:48 [Note] Event Scheduler: Loaded 0 events
140423 11:12:48 [Note] wampmysqld: ready for connections.
Version: '5.5.24-log' socket: '' port: 3306 MySQL Community Server (GPL)
我创建了一个拥有所有权限的用户:
CREATE USER 'myuser'@'localhost' IDENTIFIED BY 'mypass';
CREATE USER 'myuser'@'%' IDENTIFIED BY 'mypass';
GRANT ALL ON *.* TO 'myuser'@'localhost';
GRANT ALL ON *.* TO 'myuser'@'%';
我使用端口侦听器测试了3306端口,并打开了端口。不过,我无法远程连接到我的数据库。
我该如何解决?