]> git.donarmstrong.com Git - infobot.git/blob - INSTALL.mysql
9e816db446e23054ea3b3fd58beceac6e09a2fb4
[infobot.git] / INSTALL.mysql
1 INSTALL.mysql
2 ----------------
3
4 - Debian: (apt-get install mysql-server)
5 - Debian: (apt-get install libdbd-mysql-perl)
6
7 - run 'mysqladmin -u root -p create <DB NAME>'
8 - run 'setup/setup.pl'
9 = Possible problems
10         - if connection to localhost is (short) refused, run
11                 '/etc/init.d/mysql stop'.
12                 '/etc/init.d/mysql start'.
13         - if connection for user is refused, reload grant tables with
14                 'mysqladmin -u root -p reload'
15 * [OPTIONAL]
16         - run 'scripts/dbm2mysql.pl old-db' to convert dbm database file
17           to mysql.
18
19 ADDITIONAL NOTES:
20  HOW TO ADD NEW USER MANUALLY
21     CREATE DATABASE @DBNAME@
22     INSERT INTO user VALUES ('localhost','@USER@',password('@PASS@'),
23         'Y','Y','Y','Y','N','N','N','N','N','N','N','N','N','N');
24     INSERT INTO db VALUES ('localhost','@DBNAME@','@USER@',
25         'Y','Y','Y','Y','Y','N','N','N','N','N');
26     GRANT SELECT,INSERT,UPDATE,DELETE ON @DBNAME@ TO @USER@
27     FLUSH PRIVILEGES