diff options
author | zsloan | 2018-01-24 20:14:06 +0000 |
---|---|---|
committer | zsloan | 2018-01-24 20:14:06 +0000 |
commit | 4634cf87761980a1682473211259698b7be720e4 (patch) | |
tree | 7168293e7cf674a4250ea84080bd83112552ae93 /doc/README.org | |
parent | 623cdd2cfafc3d2dd45bc1adf460c9f3c5120e7a (diff) | |
parent | 56065c9f994c9247eaa17e5216d44d0e5e733aa2 (diff) | |
download | genenetwork2-4634cf87761980a1682473211259698b7be720e4.tar.gz |
Merge branch 'testing' of github.com:genenetwork/genenetwork2 into testing
Diffstat (limited to 'doc/README.org')
-rw-r--r-- | doc/README.org | 26 |
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 |