56,681
社区成员
发帖
与我相关
我的任务
分享
1、你同学的机器上:
比如:
C:\>mysql -uroot -p
Enter password: ******
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.1.22-rc-community-log MySQL Community Server (GPL)
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> grant all privileges on *.* to 'yourname'@'%' identified by 'youpasswd';
Query OK, 0 rows affected (0.05 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.06 sec)
mysql> exit
Bye
如果你同学的机器没有开启3306端口,让他在GOOGLE上搜素怎么开启,很简单的。
2、你的机器上:
HOST ADDRESS:你同学的IP地址
USER NAME:yourname
PASSWORD:yourpasswd
PORTS:3306
DATABASES:可以留空。