# mysql -uroot -p

Enter password:

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

解决方法:
# /etc/init.d/mysqld stop  \\停止mysql
# mysqld_safe --user=mysql --skip-grant-tables & \\以后台模式启动mysql服务
然后以重新以root用户登录就可以了
note:--skip-grant-tablels
该选项使服务器不使用权限系统。该权限允许访问服务器的用户不受限制地访问所有数据库。你可以从系统外壳命令行执行mysqladmin flush-privilegesmysqladmin reload命令,或执行MySQL FLUSH PRIVILEGES语句让运行的服务器重新开始使用 授权表。

转载于:https://www.cnblogs.com/un4sure/archive/2011/10/17/2215091.html

mysql “Access denied for user 'root'@'localhost'相关推荐

  1. mysql Access denied for user root@localhost错误处理备忘

    好久没有使用mysql,突然想起来打开一个以前的mysql数据库的项目看看,结果打开页面时出错,提示为:mysql Access denied for user root@localhost错误 百度 ...

  2. 解决mysql“Access denied for user 'root'@'localhost'”

    2019独角兽企业重金招聘Python工程师标准>>> 解决mysql"Access denied for user 'root'@'localhost'" 我的 ...

  3. 解决mysql“Access denied for user root@localhost”

    我的系统是ubuntu6.06,最近新装好的mysql在进入mysql工具时,总是有错误提示: # mysql -uroot -p Enter password: ERROR 1045 (28000) ...

  4. MySQL: linux mysql access denied for user ‘root’@’localhost'(using password:YES)

    linux安装完mysql后,使用程序连接报以上错误 Access denied for user 'root'@'localhost' (using password:YES) 解决方法,重新设置密 ...

  5. mysql“Access denied for user 'root'@'localhost'”问题的解决

    我的系统是Ubuntu12.04,最近新装好的mysql在进入mysql工具时,总是有错误提示: # mysql -uroot -p Enter password: ERROR 1045 (28000 ...

  6. [转载]解决mysql“Access denied for user 'root'@'localhost'”

    声明:此文转载自: http://blogold.chinaunix.net/u1/35320/showart_305024.html 我的系统是ubuntu6.06,最近新装好的mysql在进入my ...

  7. MySQL: Access denied for user 'root'@'localhost' (using password: YES)

    这个问题困扰了我2天.这里把踩坑过程记录下来,鼓励自己,警示他人. 环境:Windows系统,MySQL5.7.25.0 1. Access denied for user 'root'@'local ...

  8. mysql Access denied for user 'root'@'localhost' (using password: YES)

    [现象说明] C/S程序远程访问正常,本地访问报以下异常 MySql.Data.MySqlClient.MySqlException (0x80004005): Authentication to h ...

  9. mysql Access denied for user root@localhost错误解决方法总结

     代码如下 复制代码 # /etc/init.d/mysql stop # mysqld_safe --user=mysql --skip-grant-tables --skip-networking ...

最新文章

  1. pthread_cond_singal condition
  2. sixth week:third work
  3. feign 回退原因_0503-Hystrix保护应用-feign的hystrix支持
  4. 大数据学习,Hive是丢不掉的!Hive练习题50道,你也试试!
  5. postgresql 怎么读_大数据采集和抽取怎么做?这篇文章终于说明白了!
  6. ubtunu打开firefox_在Ubuntu中安装Mozilla Firefox的4种方法
  7. 地图点击区域高亮 vue_这个Excel技巧很强大,鼠标点击即高亮显示数据区域
  8. 使用下面的方法有利于提高JS代码的执行效率
  9. Mac上功能强大图片查看编辑工具:zGallery
  10. mysql 日期与索引问题
  11. Rust : 红楼梦一书中文字符的统计
  12. python 求当前小时前n个小时
  13. react WangEditor 编辑器阿里云OSS上传图片
  14. stm32f407工程改为stm32f401的方法,并修改时钟
  15. 80psi等于多少kpa_1kpa等于多少psi
  16. 【CLion】新手使用之编译运行单个文件
  17. Redis【10】-Redis发布订阅
  18. EFR32晶体校准指南
  19. StringUtils用法
  20. SAP S4HANA BP初探

热门文章

  1. 《那些年啊,那些事——一个程序员的奋斗史》——81
  2. 前端笔记 | HTML基础
  3. package ‘catkin‘ depends on non-existent package ‘python3-catkin-pkg‘
  4. linux 开发板模拟u盘,ARM-Linux开发 - USB Gadget Storage 制作模拟U盘
  5. oracle应用程序开发,关于Oracle 数据库应用程序开发问题
  6. 安装kepserver找不到根证书_考完二手车评估师证书却找不到工作,面试官的话让我记忆犹新!...
  7. android double值排序,android根据Double类型数据经纬度算出距离再根据距离实现排序功能...
  8. (6)通过输入参数(测量数据)构建三维体模型
  9. stm32usb转串口驱动_新品推荐:乐扩PCI-E转8口RS-232串口卡 支持短铁片
  10. c ++比较字符串是否相等_在C ++中比较字符串的3种方法