database on davidchua https://dchua.com/tags/database/ Recent content in database on davidchua Hugo -- gohugo.io en-us Wed, 13 Apr 2016 00:00:00 +0000 A Python RethinkDB walkthrough https://dchua.com/posts/2016-04-13-a-rethinkdb-python-walkthrough/ Wed, 13 Apr 2016 00:00:00 +0000 https://dchua.com/posts/2016-04-13-a-rethinkdb-python-walkthrough/ RethinkDB is a modern NoSQL document-based database that baked in push/pull features into its database core which allows developers to build realtime applications without having to add a websocket/messaging layer ontop of their existing stack. If you’re familar with MongoDB and its schemaless document structure, RethinkDB works in a similar manner with flexible schemas. With RethinkDB, you can write a client in any language (Python, JS, Ruby etc…) to listen to specific database queries and perform operations when there’s a change in the database. MySQL backup process https://dchua.com/posts/2014-08-28-mysql-backup-process/ Thu, 28 Aug 2014 00:00:00 +0000 https://dchua.com/posts/2014-08-28-mysql-backup-process/ How I usually prepare the backup regime of my mysql/mariadb databases of all my newly provisioned servers is to do the following tasks: Create a DBA user > create user 'dba'@'localhost'; Give the DBA user only the relevant access just for backing > GRANT SELECT, SHOW VIEW, RELOAD, REPLICATION CLIENT, EVENT, TRIGGER ON *.* TO 'dba'@'localhost'; > GRANT LOCK TABLES ON *.* TO 'dba'@'localhost'; > FLUSH PRIVILEGES; Setup a backup script!