随笔分类 - 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安装步骤
阅读全文
[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
阅读全文
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
阅读全文
浙公网安备 33010602011771号