浙江省高等学校教师教育理论培训

微信搜索“毛凌志岗前心得”小程序

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年5月17日

摘要: Mysql初始化root密码和允许远程访问mysql默认root用户没有密码,输入mysql –u root 进入mysql1、初始化root密码进入mysql数据库?1mysql>update user set password=PASSWORD(‘123456’) where User='root';2、允许mysql远程访问,可以使用以下三种方式:a、改表。?1234mysql -u roo... 阅读全文
posted @ 2012-05-17 23:37 lexus 阅读(190) 评论(0) 推荐(0)

摘要: python - No module named mysqldb - Stack Overfloweasy_install mysql-python 阅读全文
posted @ 2012-05-17 23:07 lexus 阅读(259) 评论(0) 推荐(0)

摘要: 今天早上本本里的mysql server(虚拟的linux环境)起来后,root账户出了问题,之前的密码无法登录,倒是空密码可以登录进去,但是啥也干不了,提示:ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'mysql'。前两天也出现过这个问题,网上找了一个比较流行的方法(见方法一),搞定了。今天又... 阅读全文
posted @ 2012-05-17 21:57 lexus 阅读(365) 评论(0) 推荐(0)

摘要: http://stackoverflow.com/questions/4003034/execute-sql-script-to-create-tables-and-rowsIn the MySQL interactive client you can type:source yourfile.sqlAlternatively you can pipe the data into mysql fr... 阅读全文
posted @ 2012-05-17 21:23 lexus 阅读(311) 评论(0) 推荐(0)

摘要: MySQL导出导入数据命令博客分类:MySQLMySQL数据结构SQLDOS脚本1.导出整个数据库mysqldump -u 用户名 -p 数据库名 > 导出的文件名mysqldump -u wcnc -p smgp_apps_wcnc > wcnc.sql2.导出一个表mysqldump -u 用户名 -p 数据库名 表名> 导出的文件名mysqldump -u wcnc -p smgp_apps... 阅读全文
posted @ 2012-05-17 21:21 lexus 阅读(886) 评论(0) 推荐(0)

摘要: django orm中filter(条件1).filter(条件2)与filter(条件1,条件2)的区别 - 哈欠涟涟的日志 - 网易博客django orm中filter(条件1).filter(条件2)与filter(条件1,条件2)的区别2010-05-28 11:12:25|分类: django |标签: |字号大中小订阅在http://docs.djangoproject.com/e... 阅读全文
posted @ 2012-05-17 20:34 lexus 阅读(1987) 评论(0) 推荐(0)

摘要: application - What does \x00 mean in binary file? - Stack OverflowStack OverflowQuestionsTagsUsersBadgesUnanswered Ask Question What does \x00 mean in binary file? up vote 0 down vote favorite1share [... 阅读全文
posted @ 2012-05-17 08:41 lexus 阅读(267) 评论(0) 推荐(0)