美文网首页
mysql的登陆等等基础操作

mysql的登陆等等基础操作

作者: 名字就起八个字吧 | 来源:发表于2019-08-10 23:36 被阅读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;。


相关文章

  • mysql的登陆等等基础操作

    访客账户的创建与登陆 在你更改了root的密码之后,我通过管理员命令符,登陆了root,又创建了一个user zx...

  • mysql基础学习(0)

    MySQL基础学习(-)终端基本操作 1.在Mac终端登陆 mysql -u root -p(我使用root用户登...

  • linux安装mysql

    安装mysql server mysql操作命令 登陆mysql 如果登陆报错 参考:https://blog.c...

  • PHP(8)Mysql

    一、登陆操作 登录mysql --- mysql -uroot -p12345678; 登录mysql直接进入t...

  • PHP基础02(数据库操作)

    1.MySQL操作 使用phpMyAdmin软件操作 在DOS命令行操作(在MySQL客户端操作) 2.登陆和退...

  • Linux下数据库操作

    数据库操作 登陆 mysql -uroot -p 远程连接 mysql -hip地址 -uroot -p 创建 c...

  • MySql数据库基础及IDE

    一、基础操作--sql语句 启动MySQL:service mysql start停止MySQL:service ...

  • Mysql学习记录小结

    一、基本操作 1.启动mysql 2.停止mysql 3.登陆mysql 4.退出mysql 5.常用命令 6.数...

  • 005——MySQL

    基础 配置phpmyadmin MySQL重启 PHP中操作MySQL的基本代码和流程 测试 循环MySQL 数据...

  • 5.1MySQL数据库基础考点

    全方位剖析 考点分析 MySQL数据类型延伸:MySQL的基础操作延伸:MySQL存储引擎延伸:MySQL存储机制...

网友评论

      本文标题:mysql的登陆等等基础操作

      本文链接:https://www.haomeiwen.com/subject/pwsrjctx.html