]> git.donarmstrong.com Git - infobot.git/blob - INSTALL.mysql
- patch from Morten Brix Pedersen <morten@wtf.dk>. Thanks!
[infobot.git] / INSTALL.mysql
1 INSTALL.mysql
2 ----------------
3
4 - Install a MySQL server and the DBI Perl modules.
5         - Debian: (apt-get install mysql-server 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 -----------------
21  You can add a new user manually by connecting to MySQL and performing these
22  commands:
23
24   $ mysql -u root -p
25
26   mysql> CREATE DATABASE blootbot;
27   mysql> GRANT USAGE ON *.* TO 'user'@'localhost' IDENTIFIED BY 'yourpassword';
28   mysql> GRANT ALL PRIVILEGES ON blootbot.* TO 'user'@'localhost';
29
30 for the mysql that are on apt the bot (#debian@OPN), they are available 
31 at http://emu.res.cmu.edu/~apt/blootbot/apt.sql.bz2