dos进入mysql的实现方法
发布时间:2020-12-11 23:28:28 所属栏目:MySql教程 来源:网络整理
导读:C:Userszshmysql -h 127.0.0.1 -u root -p Enter password: **** Welcome to the MySQL monitor. Commands end with ; or g. Your MySQL connection id is 11 to server version: 5.0.27-community-nt Type help; or h for help. Type c to clear the bu
C:Userszsh>mysql -h 127.0.0.1 -u root -p Enter password: **** Welcome to the MySQL monitor. Commands end with ; or g. Your MySQL connection id is 11 to server version: 5.0.27-community-nt Type 'help;' or 'h' for help. Type 'c' to clear the buffer. mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | mysql | | test | +--------------------+ 3 rows in set (0.00 sec) mysql> 这样是不行的: C:Userszsh>test -h 127.0.0.1 -u root -p;'test' 不是内部或外部命令,也不是可运行的程序或批处理文件。 C:Userszsh>test -h 127.0.0.1 -u root -p'test' 不是内部或外部命令,也不是可运行的程序或批处理文件。 由此可见: C:Userszsh>mysql -h 主机ip -u 用户名 -p;只要知道了主机ip 和用户名即可同时要在环境变量里面配置了mysql安装的bin目录 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |