• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
开到荼蘼
博客园    首页    新随笔    联系   管理    订阅  订阅

随笔分类 -  mysql

python操作MySQL数据库(windows)

摘要:使用python操作mysql数据库需要安装一个第三方的模块, MySQLdb先简单说下MySQLdb在windows下的快速安装, 其他环境下安装在此不多赘述说一下windows下安装已经编译好的版本, 一分钟左右就可以搞定, 以下是32位和64位的两个版本, 安装方法一样MySQL-python-1.2.3.win32-py2.7.exe下载链接:http://pan.baidu.com/s/1pJvyVsJ 密码:fepiMySQL-python-1.2.3.win-amd64-py2.7.exe链接:http://pan.baidu.com/s/1hqkNRjI 密码:b70m安装步骤 阅读全文
posted @ 2014-03-11 16:08 开到荼蘼 阅读(776) 评论(0) 推荐(0)
[MySQL]mysqlnd cannot connect to MySQL 4.1+ using the old insecure【解决方法】

摘要:mysqlndcannotconnecttoMySQL4.1+usingtheoldinsecureauthentication.PleaseuseanadministrationtooltoresetyourpasswordwiththecommandSETPASSWORD=PASSWORD('your_existing_password').Thiswillstoreanew,andmoresecure,hashvalueinmysql.user.IfthisuserisusedinotherscriptsexecutedbyPHP5.2orearlieryoumightn 阅读全文
posted @ 2013-12-10 11:26 开到荼蘼 阅读(402) 评论(0) 推荐(0)
linux下mysql的备份和还原

摘要:1.备份:[root@localhost ~]# mysqldump -u root -p test>/opt/test.sqlEnter password: 使用mysqldump备份, 并将备份文件指向输出目录, 输入密码即可2.还原:先创建要还原的数据库[root@localhost ~]# mysql -u root -pEnter password: Welcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 8Server version: 5.0.45 Source 阅读全文
posted @ 2013-12-10 10:05 开到荼蘼 阅读(370) 评论(0) 推荐(0)

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