1044 mysql_MYSQL 有ERROR 1044
先停了mysql,然后找到my.cnf文件,
在[mysqld]加skip-grant-tables
保存,退出
然后
vincent-guo:bin vincent$ mysql -u -p
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.6.10 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 databaes;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'databaes' at line 1
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| alldata |
| emailsys |
| microlife |
| mysql |
| performance_schema |
| test |
+--------------------+
7 rows in set (0.07 sec)
mysql> use mysql;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> update user set password=password('P@ssw0rd') where use = 'root';
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'use = 'root'' at line 1
mysql> update user set password=password('P@ssw0rd') where user = 'root';
Query OK, 3 rows affected (0.04 sec)
Rows matched: 4 Changed: 3 Warnings: 0
mysql> select user from user;
+------+
| user |
+------+
| root |
| root |
| root |
| |
| |
| root |
+------+
6 rows in set (0.04 sec)
mysql> delete from user where user='';//删除用户名为空的用户
Query OK, 2 rows affected (0.04 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql>
1044 mysql_MYSQL 有ERROR 1044相关推荐
- use mysql 1044 42000_mysql错误ERROR 1044 (42000): Access denied for user
mysql错误ERROR 1044 (42000): Access denied for user 发布时间:2020-04-03 14:30:18 来源:51CTO 阅读:1572 作者:老肖的博客 ...
- 1044 mysql_MySQL 常见错误 ERROR 1044
原标题:MySQL 常见错误 ERROR 1044 来源:潇湘隐者 , www.cnblogs.com/kerrycode/p/9198566.html 从供应商那边接手一个MySQL数据库(数据库版 ...
- error 1044 mysql_mysql ERROR 1044 (42000): Access denied for user ''@'localhost' to database
1. 问题描述: 在MySQL控制台下创建数据库出现以下信息: mysql> CREATE DATABASE python; ERROR 1044 (42000): Access denied ...
- ERROR 1044 (42000)报错的解决
[问题背景]用root用户创建用户的时候,报错ERROR 1044 (42000) mysql> grant select on *.* to rep@'%' identified by ' ...
- error 1044 (42000):access denied for user ''@'localhost' to database 'mysql' 解决方法
重新安装mariaDB数据库时,出现安装权限问题,中止安装发现居然能够登陆mysql,但是登陆时可以不填密码,操作数据库时会报错:ERROR 1044 (42000): Access denied f ...
- Mysql,ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'mysql'
ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'mysql' 刚在服务器上装上mysql,发现以root加 ...
- mysqldump普通账号Got error: 1044
[root@SHCTC-GAME5-151 release1]# mysqldump -h10.10.4.51 -u user -p password db_name >/tmp/db.sql ...
- 解决ERROR 1044 (42000): Access denied for user
解决ERROR 1044 (42000): Access denied for user 2015年12月04日 16:54:06 阅读数:8159 ERROR 1044 (42000): Acces ...
- ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'mysql'
提示:ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'mysql'.前两天也出现过这个问题,网上找了一个比 ...
最新文章
- C++中map的用法
- Keil工程Lib库文件的制作和运用
- 23种设计模式中的蝇量(享元)模式
- java+@api_Java 常用的api
- wget提示失败的解决办法
- linux 目录操作
- E	速度即转发(牛客挑战赛48)(树套树)
- 九九乘法表下半三角(C语言)
- 把女友升级为老婆的时候发生的BUG(二)
- django解决借用Model使用数据库时报错 AttributeError: Manager isn‘t accessible via xxxxxModel instances
- 计算机专业指南考试题6,计算机专业指南考试题.doc
- atitit 指令集概论原理导论 艾提拉著 目录 2. 2.3 CISC和RISC 复杂指令集	1 1. 指令集(IA:InstructionSet)是指CPU指令系统所能识别(翻译)执行的全部指令
- Java中一个逐渐被遗忘的强大功能,强到你难以置信!
- 如何把java源码打成jar_将java源码打成jar包
- 数据分析(Data Analysis)
- 易源接口showapi的使用
- 【电源科普】负载调整率
- 二维数组中的查找(两种解法,各有千秋)
- 苹果公司开发者账号申请
- python中完整爬取股票财务信息和公司基本信息
热门文章
- 逐鹿强网,金陵折桂,四届老将0ops战队如何称雄
- 怎么用python画直线_python怎么画直线
- 由legacy+MBR改为UEFI+GPT引导方式
- vue:hadoop@1.0.0 dev: `webpack-dev-server --inline --progress --config build/webpack.dev.conf.js
- python 基础文件操作
- curl: (52) Empty reply from server错误
- SEO 一般优化步骤
- 极部落TrueChain公链训练营_长沙站[湘链技术社区]
- 外卖匹配系统_快餐外卖系统的需求分析
- 抖音一个老人和一个机器人歌曲_《抖音》多年以后有个可爱老头歌曲分享