开发者社区> 问答> 正文

mysql不显示警告信息怎么解决呢?

mysql不显示警告信息怎么解决呢?

展开
收起
格格的阿里云 2022-03-30 23:49:20 727 0
1 条回答
写回答
取消 提交回答
  • (1)先来把密码写入配置文件中,输入

    [root@localhost ~]# vim /etc/my.cnf

    [mysqldump]

    user=root

    password=8888888

    [mysql]

    user=root

    password=8888888

    (2)使用命令行进行登录(不需要密码)

    [root@localhost ~]# mysql

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

    Your MySQL connection id is 10

    Server version: 5.7.18-log Source distribution

    Copyright (c) 2000, 2017, 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>

    2022-03-30 23:49:52
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
搭建电商项目架构连接MySQL 立即下载
搭建4层电商项目架构,实战连接MySQL 立即下载
PolarDB MySQL引擎重磅功能及产品能力盛大发布 立即下载

相关镜像