MySql的安装和使用
来源:互联网 发布:airx 知乎 编辑:程序博客网 时间:2024/06/05 06:39
ubuntu上安装MySQL非常简单只需要几条命令就可以完成。
Mysql错误:Ignoring query to other database解决方法
今天登陆mysql show databases出现Ignoring query to other database错误,又试了几个命令和sql全部提示Ignoring query to other database错误
错误如下:
D:\Program Files\MySQL\MySQL Server 5.6\bin>mysql -root
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 66
Server version: 5.6.15 MySQL Community Server (GPL)
Copyright (c) 2000, 2013, 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> show databases;
Ignoring query to other database
mysql> show tables;
Ignoring query to other database
折腾了半天才发现原来是在连接mysql时没有"-u"参数导致的
D:\Program Files\MySQL\MySQL Server 5.6\bin>mysql -uroot
重新连接mysql 加上-u参数 一切正常
创建数据库(转载):
1) 建立一个名为xhkdb的数据库:
mysql> create database xhkdb;
2) 创建数据库并分配用户:
- CREATE DATABASE 数据库名;
- GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,ALTER ON 数据库名.* TO 数据库名@localhost IDENTIFIED BY '密码';
- SET PASSWORD FOR '数据库名'@'localhost' = OLD_PASSWORD('密码');
- MySQL 的安装和使用
- mysql的安装和使用
- mysql的安装和使用
- MySQL的安装和使用
- MySql的安装和使用
- MySQL的安装和使用
- MySQL的安装和使用
- linux下mysql的安装和使用
- 绿色版MySQL的安装和使用
- MySQL 和MySQLClient的安装使用
- linux mysql的卸载和安装 使用
- ubuntu下mysql的安装和使用
- MySQL Query Browser的安装和使用
- MySql数据库的安装和使用
- Linux下MySql的安装和使用
- linux下MySQL的安装和使用
- Mac下MySQL的安装和使用
- Mac 上 MySql的安装 和 使用
- 报javax.servlet.ServletException: Servlet.init() for servlet springmvc threw exception异常
- I00026 计算数根
- Towards Constructing Sports News from Live Text Commentary读书笔记
- 设置mysql允许外网访问
- PYTHON_DAY_11_20160607
- MySql的安装和使用
- C#中的三大结构
- 【十四】两个成员的类模板
- 搜索关键字变颜色
- PYTHON_DAY_12_20160610
- hdu HDU 3555 Bomb
- 关于linearLaout的权重,随手笔记
- 高斯模糊的算法
- PYTHON_DAY_13_201606011