您好,欢迎来到要发发知识网。
搜索
您的当前位置:首页mysql使用命令行连接服务器

mysql使用命令行连接服务器

来源:要发发知识网

1、在登录成功后出现mysql命令提示窗口,在上面执行SQL语句。

[root@host]# mysql -u root -p
Enter password:******

2、使用了root用户登录到mysql服务器,也可以使用其他mysql用户登录。

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2854760 to server version: 5.0.9
 
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

3、退出 mysql命令提示窗口可以使用exit命令。

mysql> exit
Bye

以上就是mysql使用命令行连接服务器,希望对大家有所帮助。更多mysql学习指路:\

推荐操作系统:windows7系统、mysql5.8、DELL G3电脑

Copyright © 2019- net188.cn 版权所有 湘ICP备2022005869号-2

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务