aboutsummaryrefslogtreecommitdiff
path: root/doc/README.org
diff options
context:
space:
mode:
authorzsloan2018-02-28 16:45:31 +0000
committerzsloan2018-02-28 16:45:31 +0000
commit1e0a0739483ca192c50ec953850a02130b76df72 (patch)
tree300ab3b58d3d6a25fe1e696f9ee9c15de78f121e /doc/README.org
parent59a6b89f1d14ac542a80ed8c1901c1aae0ba7103 (diff)
parentf44a18ccd4c45ab7fd2179c9000d1bf836e3f654 (diff)
downloadgenenetwork2-1e0a0739483ca192c50ec953850a02130b76df72.tar.gz
Merge branch 'testing' of https://github.com/genenetwork/genenetwork2
Diffstat (limited to 'doc/README.org')
-rw-r--r--doc/README.org26
1 files changed, 22 insertions, 4 deletions
diff --git a/doc/README.org b/doc/README.org
index a39ef603..937a9549 100644
--- a/doc/README.org
+++ b/doc/README.org
@@ -104,11 +104,29 @@ As root configure and run
: mysqld --datadir=/var/mysql --initialize-insecure
: mkdir -p /var/run/mysqld
: chown mysql.mysql ~/mysql /var/run/mysqld
-: su mysql -c mysqld --datadir=/var/mysql --explicit_defaults_for_timestamp -P 12048
+: mysqld -u mysql --datadir=/var/mysql --explicit_defaults_for_timestamp -P 12048"
-/etc/my.cnf
-[mysqld]
-user=root
+If you want to run as root you may have to set
+
+: /etc/my.cnf
+: [mysqld]
+: user=root
+
+To check error output in a file on start-up run with something like
+
+: mysqld -u mysql --console --explicit_defaults_for_timestamp --datadir=/gnu/mysql --log-error=~/test.log
+
+Other tips are that Guix installs mysqld in your profile, so this may work
+
+: /home/user/.guix-profile/bin/mysqld -u mysql --explicit_defaults_for_timestamp --datadir=/gnu/mysql
+
+When you get errors like:
+
+: qlalchemy.exc.IntegrityError: (_mysql_exceptions.IntegrityError) (1215, 'Cannot add foreign key constraint')
+
+you may need to set
+
+: set foreign_key_checks=0
** Load the small database in MySQL