ITPub博客

首页 > IT职业 > IT职场 > mysql使用命令行连接服务器

mysql使用命令行连接服务器

IT职场 作者:pswyjz 时间:2021-09-11 09:49:31 0 删除 编辑

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学习指路:MySQL

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

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/755/viewspace-2829025/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2019-11-21

  • 博文量
    213
  • 访问量
    28344