zoukankan      html  css  js  c++  java
  • Ignoring query to other database

    才发现原来是在连接mysql时没有参数错误导致的

    [root@hadoop01 ~]# mysql -uroot -oproot
    Warning: Using a password on the command line interface can be insecure.
    Welcome to the MySQL monitor.  Commands end with ; or g.
    Your MySQL connection id is 32
    Server version: 5.6.38 MySQL Community Server (GPL)
    
    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> use tmp;
    Database changed
    mysql> show tables;
    Ignoring query to other database
    mysql> use tmp;
    Database changed
    mysql> show tables;
    Ignoring query to other database
    mysql> CREATE TABLE tmp.os_app_api_log(
        -> phone VARCHAR(20) NOT NULL,
        -> data CHAR(10),
        -> time CHAR(10) );
    Ignoring query to other database
    mysql>
    mysql>
    mysql> CREATE TABLE tmp.online_service_log(
        -> phone VARCHAR(9) NOT NULL,
        -> data CHAR(10),
        -> time CHAR(10) );
    Ignoring query to other database
    mysql>
    mysql>
    mysql>
    mysql> use tmp;
    Database changed
    mysql> show tables;
    Ignoring query to other database
    mysql>
    [1]+  Stopped                 mysql -uroot -oproot
    [root@hadoop01 ~]# mysql -uroot -proot
    Warning: Using a password on the command line interface can be insecure.
    Welcome to the MySQL monitor.  Commands end with ; or g.
    Your MySQL connection id is 33
    Server version: 5.6.38 MySQL Community Server (GPL)
    
    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>
  • 相关阅读:
    正则表达式系统教程 [转,主要是自己备忘] 碧血黄沙
    vim打开txt文件看到^@字符
    使用PuTTY软件远程登录root被拒:access denied
    Using CustomProperties of CodeSmith
    ASP:Literal控件用法
    ASP.NET2.0中配置文件的加密与解密
    Enterprise Library 2.0 Data Access Application Block (补充)
    Infragistics中WebGrid的MultiColumn Headers设计
    世界杯揭幕战比分预测
    Enterprise Library1.0 DataAccess Application Block
  • 原文地址:https://www.cnblogs.com/wqbin/p/11759561.html
Copyright © 2011-2022 走看看