在MYSQL目录下 D:\mysql6\bin>mysql -ucpc -p123 -P3306 -h218.26.42.69 Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 8408 Server version: 5.1.45-community-log MySQL Community Server (GPL)Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql>cpc是用户名称,123是密码,218.26.42.69是远端服务器的的IP地址,3306远端服务器的端口
D:\mysql6\bin>mysql -ucpc -p123 -P3306 -h218.26.42.69
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8408
Server version: 5.1.45-community-log MySQL Community Server (GPL)Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql>cpc是用户名称,123是密码,218.26.42.69是远端服务器的的IP地址,3306远端服务器的端口
是的,在DOS窗口下。
对应的参数改成你服务器的参数就可以了。
还是不行啊 报错:
error 1045<80000>:access denied for user 'root'@'localhost'<using password:YES>
找服务器管理员,或者你自己到服务器上执行授权语句。
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123';这样就可以了。
二哥,你不会把mysql -ucpc -p123 -P3306 -h218.26.42.69直接copy过去了吧,-p123表示密码是123,他们只是用这个举了个例子
不是直接COPY的呀。 是用自己的用户名和密码。