环境:Ubuntu Xenial (16.04) !!! CentOS 参考这里 #安装 PostgreSQL sudo apt-get updatesudo apt-get upgradeapt-get install htop wget software-properties-common 默认: sudo apt-get install postgresql (9.5版本) For any Ubuntu version you need to can do this by the
个人比较喜欢 MYSQL 的轻量,今天花了一点时间把阿里云上的 MYSQL5.7 换成了 Percona-Server .Percona 是一个开源的 MySQL 衍生版,TokuDB 的数据库引擎使得 Percona 服务器非常有吸引力,如果你需要的高性能,高可靠性和高性价比的解决方案,它将是一个很好的选择. Percona Server 5.7 comes with the TokuDB storage engine. You can find more information on how
1.使用示例 import psycopg2 # 建立数据库连接 conn = psycopg2.connect("dbname=test user=postgres") # 开启游标操作数据库 cur = conn.cursor() # 建表 cur.execute("CREATE TABLE test (id serial PRIMARY KEY, num integer, data varchar);") # 传递参数给sql语句占位符,执行该sql语句(可避
[mysqld] skip-grant-tables datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock # Disabling symbolic-links is recommended to prevent assorted security risks symbolic-links=0 # Settings user and group are ignored when systemd is used. # If you need