mysql的登陆等等基础操作

2019-08-10  本文已影响0人  名字就起八个字吧

访客账户的创建与登陆

在你更改了root的密码之后,我通过管理员命令符,登陆了root,又创建了一个user zxj,端口localhost,xxx的一个访客账户,它拥有所有的登陆权限(通过*.*来设置)。并且拥有这个账户就意味着我们可以不通过管理员权限,直接win+r登上cmd就能够进入mysql

C:\Users\14665>d:

D:\>cd mysql

D:\mysql>cd mysql-8.0.17-winx64/bin

D:\mysql\mysql-8.0.17-winx64\bin>mysql -h localhost -u zxj -p

Enter password: *********

Welcome to the MySQL monitor.  Commands end with ; or \g.

Your MySQL connection id is 11

Server version: 8.0.17 MySQL Community Server - GPL

Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its

affiliates. Other names may be trademarks of their respective

owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>

差不多就是这样子。

具体的登陆方式可以参考这篇文章

登陆mysql

你想要退出的话就打exit就好了,如果需要帮助就打?;或者help;。


上一篇 下一篇

猜你喜欢

热点阅读