• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录

伴老

不积跬步,无以至千里;不积小流,无以成江海
  • 博客园
  • 联系
  • 订阅
  • 管理

公告

随笔分类 -  MySQL

MySQL
win7下找回MySQL密码
摘要:1. 结束mysql进程.2. 重新启动mysql,并进入相应的安装目录下并输入“bin/mysqld --skip-grant-tables &”,回车后该窗口将会停止,此时需要再打开一个窗口并同样进入安装目录下3. 输入mysql -u root4. 修该root的登录密码:update mysql.user set password = PASSWORD('新的密码') where user = 'root' ;flush privileges;quit;OK, let's login mysql again~久违了的欢迎画面~ 阅读全文

posted @ 2012-02-28 15:15 伴老 阅读(279) 评论(0) 推荐(0)

处理【Mysql服务无法启动,显示错误1067】
摘要:检查配置文件mysql.ini :#设置WinMySQLadminServer=C:/Program Files/MySQL/MySQL Server 5.5/bin/mysqld-nt.exe user=rootpassword=xxxxxxxx # 设置为MYSQL的安装目录 basedir=C:/Program Files/MySQL/MySQL Server 5.5 # 设置为MYSQL的数据目录 datadir=C:/Program Files/MySQL/MySQL Server 5.5/data 阅读全文

posted @ 2012-02-28 14:20 伴老 阅读(195) 评论(0) 推荐(0)

处理MySQL删除数据时Error Code: 1093. You can't specify target table '表名' for update in FROM clause
摘要:在执行:deletefrom_ResumewhereIdin(selectA.Idfrom_ResumeAinnerjoin_UserBonA.UserId=B.UserIdwhere A.CreateTime < B.CreateTime):【详细错误】:Error Code: 1093. You can't specify target table '_Resume' for update in FROM clause.【错误原因】:在更新或删除目标表中数据的时候如果使用子查询,目标表不能在子查询的From语句中出现~原程序改造为:1createtabletm 阅读全文

posted @ 2011-12-29 14:41 伴老 阅读(1632) 评论(0) 推荐(0)

处理MySQL更新表时ErrorCode:1175.You are using safe update mode and you tried to update a table without a WHERE that uses a KEY
摘要:Error: 1175 SQLSTATE: HY000 (ER_UPDATE_WITHOUT_KEY_IN_SAFE_MODE)Message: You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column.Solution:SETSQL_SAFE_UPDATES= 0;update T set col = 'xxx' where condition ……; 阅读全文

posted @ 2011-12-27 10:59 伴老 阅读(1038) 评论(0) 推荐(0)

 
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3