mysql 命令 远程连接服务器

mysql -h IP地址 -u 用户名 -p 密码












Microsoft Windows XP [版本 5.1.2600]
(C) 版权所有 1985-2001 Microsoft Corp.

C:\Documents and Settings\Administrator>cd C:\Program Files\MySQL\MySQL Server 5
.1\bin\
C:\Program Files\MySQL\MySQL Server 5.1\bin>mysql -h 192.168.0.156 -u root -p ""
Enter password: ******
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2130
Server version: 5.0.51b-community-nt-log MySQL Community Edition (GPL)

Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>





你可能感兴趣的:(mysql)