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'.前两天也出现过这个问题,网上找了一个比 ...
最新文章
- JMC | 人工智能在药物合成中的当前和未来作用(1)
- vue点击改变data值_vue 中自定义指令改变data中的值
- 【转】 LSD(Line Segment Detector) 直线段检测算法学习~
- 动作游戏老是卡?试试从这些方面提升流畅度
- 计算机仿真课程设计四号题,上海电力学院电子线路计算机仿真课程设计报告
- “暂时没有对您所在的地区提供下载和试听服务”的解决办法
- SPFA和FLOYD算法如何打印路径
- 全国英语等级考试网上报名
- Word文档批量导入
- Selenium无法定位元素的九种解决方案
- 若依源码分析(7)——岗位管理
- 测试计划一般包括哪些方面?
- java 解析GZIP 和 Deflate 网页源文件
- AUTOCAD安装未完成,某些产品无法安装
- Android未接电话(未接电话个数,以及未接电话信息的读取)
- 数学家告诉你如何告别单身
- 国内源(镜像)安装Homebrew + adb
- kettle基本工具的使用
- 在ArcGIS中如何为坐标添加带号?
- Authing 客户故事|仙工智能
热门文章
- koa2.x--art-template
- EXCEL中如何使用正则表达式
- 转ARM 指令 详解
- PTA - 电话聊天狂人
- CSU 1224 ACM小组的古怪象棋
- 电路交换,报文交换,分组交换简介与优缺点
- swak4foam的安装(v7测试有效)
- lilypond笔记 -- Chopin Prelude G major
- 计算机java用什么收题_JAVA是一种______。 A.计算机语言 B.计算机没备 C.数据库 D.应用软件...
- Done! Done! Done! DONE ~..