
sql
文章平均质量分 72
xkxjy
这个作者很懒,什么都没留下…
展开
-
修改mysql密码
1、首先启动mysqld,无授权验证模式,为了安全,将监听地址bind在localhost cmd>mysqld --skip-grant-tables --bind-address=localhost 2、运行mysql cmd>mysql Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL co原创 2013-02-24 11:29:49 · 359 阅读 · 0 评论 -
python备份mysql数据库
介绍使用python结合mysqldump对mysql数据库进行备份 import os import sys import configparser import time def test_file_path(fp): if not os.path.exists(fp): raise RuntimeError('file {} not found'.format(fp))原创 2014-02-12 22:26:16 · 712 阅读 · 0 评论 -
postgresql 免安装版使用
免安装版 postgresql 使用 1、首先使用 initdb 初始化数据目录 initdb --pgdata=data --encoding=UTF8 --locale=C 2、启动 postgres -D "data" pg_ctl -D "data" -l logfile.log start pg_ctl -D "data" -l logfile.log stop原创 2014-02-28 21:41:47 · 1500 阅读 · 0 评论