另一方面,MySQL连接到本地数据库,用户名为“根”,密码为“123”。 注意“-p”和“123”之间不能有空格。
c : MySQL-h本地主机- uroot-p123
二、MySQL是远程数据库(xxx.xxx.0.xxx )、端口“3306”、用户名“root”、密码“123”
c : MySQL-hxxx.XXX.0.XXX-p 3306-uroot-p123
三、MySQL连接本地数据库,用户名为" root ",隐藏密码
c : MySQL-h本地主机- u root-p
Enter password:
四、MySQL连接本地数据库,用户名为" root ",要连接的数据库指定为" test "
c : MySQL-h localhost-uroot-p123-dtest
MySQL select数据库(;
查看版本
MySQL状态;