• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
开到荼蘼
博客园    首页    新随笔    联系   管理    订阅  订阅
2013年12月10日
关于Unix时间戳(Unix timestamp)的种种
摘要: 如何在不同编程语言中获取现在的Unix时间戳(Unix timestamp)?JavatimeJavaScriptMath.round(new Date().getTime()/1000) getTime()返回数值的单位是毫秒Microsoft .NET / C#epoch = (DateTime.Now.ToUniversalTime().Ticks - 621355968000000000) / 10000000MySQLSELECT unix_timestamp(now())PerltimePHPtime()PostgreSQLSELECT extract(epoch FROM now 阅读全文
posted @ 2013-12-10 14:47 开到荼蘼 阅读(917) 评论(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 开到荼蘼 阅读(398) 评论(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 开到荼蘼 阅读(369) 评论(0) 推荐(0)
yum报错Error: Cannot find a valid baseurl for repo: base解决方法
摘要: centos下使用yum安装软件时, 出现Error: Cannot find a valid baseurl for repo: base错误解决方法如下(修改dns配置)[root@localhost ~]# yum install vimError: Cannot find a valid baseurl for repo: base[root@localhost ~]# vim /etc/resolv.conf在此文件中最后加入nameserver 8.8.8.8保存后可ping www.baidu.com进行测试 阅读全文
posted @ 2013-12-10 09:22 开到荼蘼 阅读(1981) 评论(0) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3