[求助]MySQL登录求教
%mysql -h hostname -u username -ppassword databasename<BR>这条命令怎么用?hostname\username 是怎么定义的,怎么得到的?提示符前的路径是怎么样的?<BR><BR>谢谢,这个问题困扰了我很长时间,一直不知所以然。 <P>你是在命令符下的吗?<BR><BR>比如:<BR><BR>Microsoft Windows XP [版本 5.1.2600]<BR>(C) 版权所有 1985-2001 Microsoft Corp.</P><P>C:\Documents and Settings\Administrator>cd ../</P>
<P>C:\Documents and Settings>cd ../</P>
<P>C:\>cd WebServer</P>
<P>C:\WebServer>cd mysql</P>
<P>C:\WebServer\mysql>cd bin</P>
<P>C:\WebServer\mysql\bin>mysql -h localhost -u root -p<BR>Enter password: ***<BR>Welcome to the MySQL monitor. Commands end with ; or \g.<BR>Your MySQL connection id is 1 to server version: 5.0.16-nt</P>
<P>Type 'help;' or '\h' for help. Type '\c' to clear the buffer.</P>
<P>mysql><BR><BR></P> 谢谢,明白了,那从别的机器上远程操作另一台机器上的数据库,那hostname\username又是什么呢?<BR>[em25] 首先,远程登陆必须有权限<BR><BR>如果有权限了,host就是那机器的IP或者MYSQL数据库域名,一般用IP就可以了<BR>
页:
[1]
